Change-Id: Iabdc5005ed9376e31414429a76898c0798d8e7ff Former-commit-id:48faf25841
[formerly492e6fe379
] [formerly209299d1cb
[formerly ec3999181ac1f2d2d0ca7f469b69a5bf83633570]] Former-commit-id:209299d1cb
Former-commit-id:2a31a4c3e9
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
|