Skip to content

Instantly share code, notes, and snippets.

@littleq0903
Created May 8, 2019 21:01
Show Gist options
  • Save littleq0903/ba504e02821d7e42d3a457dfa57b218a to your computer and use it in GitHub Desktop.
Save littleq0903/ba504e02821d7e42d3a457dfa57b218a to your computer and use it in GitHub Desktop.
My git alias collection
[alias]
fetchmaster = fetch origin master:master
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
br = for-each-ref --count=10 --sort=-committerdate refs/heads/ --format=%(refname:short)
br30 = for-each-ref --count=30 --sort=-committerdate refs/heads/ --format=%(refname:short)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment