rud (owner)

Fork Of

Revisions

gist: 106620 Download_button fork
public
Description:
hack, from http://reinh.com/blog/2008/08/27/hack-and-and-ship.html
Public Clone URL: git://gist.github.com/106620.git
Bash
1
2
3
4
5
6
7
8
#!/bin/sh -x
# git name-rev is fail
CURRENT=`git branch | grep '\*' | awk '{print $2}'`
git checkout master || exit 1
git pull origin master || exit 1
git checkout ${CURRENT} || exit 1
git rebase master || exit 1