rud (owner)

Fork Of

Revisions

  • 36c63e rud Mon May 04 12:33:08 -0700 2009
  • 256698 ReinH Tue Nov 25 08:43:16 -0800 2008
  • 519ab8 ReinH Fri Aug 29 11:17:02 -0700 2008
  • efa5f9 ReinH Thu Aug 28 10:02:50 -0700 2008
  • 7b3a56 ReinH Wed Aug 27 19:25:22 -0700 2008
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
Embed All Files: show embed
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