awips2/tools/scripts/upush
Steve Harris d9faed979f 12.9.1-5 baseline
Former-commit-id: 77cbd6c1e5 [formerly a1d931fd44] [formerly 61f269f54c] [formerly f2fac39428 [formerly 61f269f54c [formerly d85b989f77196d20eb2d2a21cf4daa13d50474ae]]]
Former-commit-id: f2fac39428
Former-commit-id: 54140b7733222bbc423315196e9781453b12f896 [formerly 72824561cb]
Former-commit-id: 7fb0b17bd5
2012-08-21 15:27:03 -05:00

15 lines
232 B
Bash

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