Embed URL


SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

git alias to merge from origin into my feature branch

View gist:1483316
1 2 3 4 5
#obviously could inline, but it's more clear to me written out
git config alias.currbranch 'name-rev --name-only HEAD'
git config alias.updateandthen '!git checkout master && git fetch && git merge origin/master && git checkout'
git config alias.update '!curr=$(git currbranch) && git updateandthen $curr && git merge master || git mergetool'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.