gpob(){ gb=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\1/") git push origin $gb } |
Stands for “git push origin branch” and it automatically pushes current commits to the currently checked out branch.
gpob(){ gb=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\1/") git push origin $gb } |
Stands for “git push origin branch” and it automatically pushes current commits to the currently checked out branch.
Nice guy!