Skip to content

Instantly share code, notes, and snippets.

@senorihl
Created September 20, 2019 13:13
Show Gist options
  • Save senorihl/499ba73a816228484302f25a452fb60b to your computer and use it in GitHub Desktop.
Save senorihl/499ba73a816228484302f25a452fb60b to your computer and use it in GitHub Desktop.
[alias]
last = !bash -c 'git log --oneline -${1:-1}' -
amend = commit --amend --no-edit -a
co = checkout
cn = checkout -n
fp = fetch -p
cam = commit -am
p = !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