Skip to content

Instantly share code, notes, and snippets.

@scottwarren
Last active August 29, 2015 14:19
Show Gist options
  • Save scottwarren/d951244de537f89720bf to your computer and use it in GitHub Desktop.
Save scottwarren/d951244de537f89720bf to your computer and use it in GitHub Desktop.
Merge the main development branch into your feature branch
##
# merges a branch into current branch to keep up to date with the base (default master)
# usage: be-merge [branch]
# Make sure you are on the right branch before you run this command
#
function merge-base() {
git checkout ${1-master}
git pull
git checkout -
git merge ${1-master}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment