Skip to content

Instantly share code, notes, and snippets.

@danikula
Created April 26, 2019 13:35
Show Gist options
  • Select an option

  • Save danikula/14b2a7d856606b1cb0db260f043595dc to your computer and use it in GitHub Desktop.

Select an option

Save danikula/14b2a7d856606b1cb0db260f043595dc to your computer and use it in GitHub Desktop.
git shortcuts
[alias]
s = status
b = branch
nb = checkout -b
c = checkout
pf = push -f origin
rs = !sh -c 'git reset --soft HEAD~1 && git status'
l = log --pretty=format:\"%h %ad %s%d [%an]\" --graph --date=short
acm = !git add . && git commit -m
p = pull
pp = pull --prune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment