awips2/tools/scripts/upush

16 lines
232 B
Text
Raw Normal View History

#!/bin/bash
# Get current branch name
branch=`git branch | grep "*"`
branch="${branch:2}"
# Set remote push repo to branch
git config remote.origin.push $branch:refs/for/$branch
git pull --rebase
# Push now
git push
git status