Skip to content

Instantly share code, notes, and snippets.

@aambrozkiewicz
Last active September 2, 2020 13:16
Show Gist options
  • Save aambrozkiewicz/b972030d579cc3f82d28fd4a199164fb to your computer and use it in GitHub Desktop.
Save aambrozkiewicz/b972030d579cc3f82d28fd4a199164fb to your computer and use it in GitHub Desktop.
git aliases that I use
[alias]
co = checkout
cob = checkout -b
st = status
ci = commit
chp = cherry-pick
p = pull
amend = checkout --amend
branch-name = !git branch --show-current
publish = !git push -u origin HEAD:$(git branch-name)
trynow = !git add . && git ci --amend --no-edit && git push --force-with-lease
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment