Skip to content

Instantly share code, notes, and snippets.

@vrosnet
Forked from ilyar/.gitconfig_alias
Created October 5, 2016 08:00
Show Gist options
  • Save vrosnet/0fbf261316c51e45366502cecaef828f to your computer and use it in GitHub Desktop.
Save vrosnet/0fbf261316c51e45366502cecaef828f to your computer and use it in GitHub Desktop.
Useful Git alias
[alias]
co = checkout
ci = commit
st = status
br = branch
cp = cherry-pick
hist = log --pretty=format:\"%Cblue%h%Creset %ad %Cgreen%s %Cred%an%n%d\" --graph --date=rfc
glog = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
ref = log -n 1 --pretty=format:%h --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment