awips2/tools/scripts/upush
Steve Harris a9dafc2233 Issue #708 - execute permissions didn't survive the git push
Former-commit-id: aa46aa3713 [formerly aa46aa3713 [formerly 44388508c45f2c560301558c4fb297b806ba55a7]]
Former-commit-id: a2c88aee12
Former-commit-id: bc15e39e5e
2012-06-22 12:08:20 -05:00

15 lines
232 B
Bash
Executable file

#!/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