cyberfly
5/5/2020 - 3:33 AM

Git alias shortcut

nano ~/.gitconfig

nano ~/.bash_profile

if ubuntu nano ~/.profile

ref: https://victorzhou.com/blog/git-aliases/

[alias]
  s = status
  a = add
  cm = commit -m
  po = push origin
  d = diff
  co = checkout
  b = branch
  last = log -1 HEAD
  cane = commit --amend --no-edit
  lo = log --oneline -n 10
  pr = pull --rebase
  head = reset --hard HEAD