rud (owner)

Fork Of

Revisions

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