Initial revision of git Work in Progress script.
[git-scripts.git] / git-fpush
blob37e686f1c1d7c466f33d85fdbe0d9bea3aeb707c
1 #! /bin/sh
3 # Some servers (like Savannah) refuse to force-update branches. This script
4 # can be used to workaround that.
5 # The branch is first deleted and push back.
7 branch=$1
9 if [ "$1" = "" ]; then
10 # Use current branch
11 branch=`git branch | egrep '^\* ' | cut -f2 -d' '`
14 git push origin :$branch && git push origin $branch