Skip to content

Instantly share code, notes, and snippets.

@andreionut
Created August 12, 2015 13:32
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 andreionut/9c0d843d931b32464342 to your computer and use it in GitHub Desktop.
Save andreionut/9c0d843d931b32464342 to your computer and use it in GitHub Desktop.
Git config
[core]
excludesfile = ~/.gitignore
precomposeunicode = false
quotepath = false
[branch]
autosetuprebase = always
[push]
default = upstream
[alias]
ci = commit
c = commit -m # commit with a message
ca = commit -am # commit all files with a message
co = checkout
# d = difftool
ds = diff --cached # diff staged changes
dl = diff HEAD^ # diff last commit
pl = pull
ps = push
st = status
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment