Skip to content

Instantly share code, notes, and snippets.

@ncr
Created July 25, 2008 10:43
Show Gist options
  • Save ncr/2421 to your computer and use it in GitHub Desktop.
Save ncr/2421 to your computer and use it in GitHub Desktop.
[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'
# down: updating feature branch from remote master
git checkout master
git pull
git checkout $1
git merge master
git config alias.ci commit
or edit $HOME/.gitconfig
[alias]
ci = commit
# 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