Created
July 25, 2008 10:43
-
-
Save ncr/2421 to your computer and use it in GitHub Desktop.
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
[alias] | |
up = !sh -c 'git checkout master && git pull && git merge $0 && git push && git checkout $0' | |
down = !sh -c 'git checkout master && git pull && git checkout $0 && git merge master' |
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
# down: updating feature branch from remote master | |
git checkout master | |
git pull | |
git checkout $1 | |
git merge master |
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
git config alias.ci commit | |
or edit $HOME/.gitconfig | |
[alias] | |
ci = commit |
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
# up: pushing feature branch changes to remote master | |
git checkout master | |
git pull | |
git merge $1 | |
git push | |
git checkout $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment