Skip to content

Instantly share code, notes, and snippets.

@rgabs
Created January 24, 2017 09:27
Show Gist options
  • Save rgabs/a0e6713891ec07239a1137f1545495ea to your computer and use it in GitHub Desktop.
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>
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