Skip to content

Instantly share code, notes, and snippets.

@rafaelcavalcante
Last active August 4, 2016 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaelcavalcante/d6fcd029fb1be5041218ada37c8bdb40 to your computer and use it in GitHub Desktop.
Save rafaelcavalcante/d6fcd029fb1be5041218ada37c8bdb40 to your computer and use it in GitHub Desktop.
my .gitconfig aliases
[alias]
# simple commands
co = checkout
st = status
br = branch
cp = cherry-pick
ci = commit
cob = checkout -b
# log commands
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
le = log --oneline --decorate
filelog = log -u
fl = log -u
dl = "!git ll -1"
# diff commands
dc = diff --cached
diff = diff --word-diff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment