16 lines
232 B
Text
16 lines
232 B
Text
|
#!/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
|