Skip to content

Instantly share code, notes, and snippets.

@khamiltonuk
Last active November 22, 2017 08:55
Show Gist options
  • Select an option

  • Save khamiltonuk/f701e3f101b93a57136c2b8e3c4ce80f to your computer and use it in GitHub Desktop.

Select an option

Save khamiltonuk/f701e3f101b93a57136c2b8e3c4ce80f to your computer and use it in GitHub Desktop.
Git alias for the perfect workflow (file stored in your home directory)
[alias]
addr = noaddr
st = status
flg = !git fetch && git lg
lg = log --graph --decorate --branches --oneline --remotes --tags --all --color
ci = commit
co = checkout
cdiff = diff --cached
subup = submodule update --init --recursive
ff = merge --ff-only origin/master
fff = !git fetch -p && git merge --ff-only
show-all-the-things = manifest
yoink = cherry-pick
unstage = reset HEAD
authors = !git log --format='%aN' | sort | uniq -c | sort -nr
committers = !git log --format='%cN' | sort | uniq -c | sort -nr
whatis = rev-list --max-count 1
rebase = rebase -p
sort = for-each-ref --sort=-committerdate refs/heads/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment