gist: 2421 Download_button fork
public
Public Clone URL: git://gist.github.com/2421.git
.gitconfig
1
2
3
4
[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.sh
1
2
3
4
5
6
7
# down: updating feature branch from remote master
 
git checkout master
git pull
git checkout $1
git merge master
up.sh
1
2
3
4
5
6
7
8
# up: pushing feature branch changes to remote master
 
git checkout master
git pull
git merge $1
git push
git checkout $1
Text only
1
2
3
4
5
6
7
8
git config alias.ci commit
 
or edit $HOME/.gitconfig
 
[alias]
        ci = commit

Owner

ncr

Revisions