Created
January 24, 2017 09:27
-
-
Save rgabs/a0e6713891ec07239a1137f1545495ea to your computer and use it in GitHub Desktop.
Shortcut to push onto the current branch. So I've created an alias in .zshrc file `gpoc = git push origin $(git rev-parse --abbrev-ref HEAD)`. Now `gpoc` will push into the current branch. No need to write git push origin <branchname>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gpoc = "git push origin $(git rev-parse --abbrev-ref HEAD)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment