Skip to content

Instantly share code, notes, and snippets.

@borisschapira
Last active April 26, 2016 09:54
Show Gist options
  • Save borisschapira/5345194 to your computer and use it in GitHub Desktop.
Save borisschapira/5345194 to your computer and use it in GitHub Desktop.
Config GIT
[user]
name = user
email = mail
[color]
ui = true
diff = auto
interactive = auto
[alias]
st = status
lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%an %cr)%Creset' --abbrev-commit --date=relative
last = lg -1
wdiff = diff --color-words
branches = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--'"
search = "!sh -c 'git log --grep=$1' -"
[core]
excludesfile = ~/.gitignore
[credential]
helper = cache --timeout=360000
[diff]
wordRegex = .
[pull]
rebase = true
[push]
default = simple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment