Former-commit-id:a1d931fd44
[formerly61f269f54c
] [formerlya1d931fd44
[formerly61f269f54c
] [formerlyf2fac39428
[formerly d85b989f77196d20eb2d2a21cf4daa13d50474ae]]] Former-commit-id:f2fac39428
Former-commit-id:7fb0b17bd5
[formerly72824561cb
] Former-commit-id:9b5c2094ed
15 lines
232 B
Bash
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
|