3 # Makes push "just work" by only pushing the current branch to origin.
6 branch_name=$(git symbolic-ref --quiet HEAD)
7 if [[ $? -ne 0 ]] ; then
12 branch_name=${branch_name/refs\/heads\//}
14 git push origin $branch_name
15 if [[ $? -ne 0 ]] ; then