Last active
August 29, 2015 14:19
-
-
Save scottwarren/d951244de537f89720bf to your computer and use it in GitHub Desktop.
Merge the main development branch into your feature branch
This file contains 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
## | |
# 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