Created
January 8, 2018 19:42
-
-
Save RedTahr/e0c206834c408c680f841bb12ce8d08e to your computer and use it in GitHub Desktop.
powershell script to git merge dev branch with currently checked out branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$currentBranch = git rev-parse --abbrev-ref HEAD | |
git checkout dev | |
git pull | |
git checkout $currentBranch | |
git merge dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment