Simple Git Alias To Push The Current Branch
home // page // git
s
Technical Tips

Simple Git Alias To Push The Current Branch

Hey you! Tired of having type all this nonsense just to push up the current¬†git branch?: $ git push origin my-super-long-branch-name 1 $ git push origin my–super–long–branch–name Well fear not, just add this simple git alias to push the current branch: pu = !git branch | grep ‘^\\*’ | cut -c3- | xargs git push origin 1 pu = !git branch | grep ‘^\\*’ | cut –c3– | xargs git push origin And then just type: $ git pu 1…