Skip to content

Instantly share code, notes, and snippets.

@RedTahr
Created January 8, 2018 19:42
Show Gist options
  • Save RedTahr/e0c206834c408c680f841bb12ce8d08e to your computer and use it in GitHub Desktop.
Save RedTahr/e0c206834c408c680f841bb12ce8d08e to your computer and use it in GitHub Desktop.
powershell script to git merge dev branch with currently checked out branch
$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