Skip to content

Instantly share code, notes, and snippets.

@superzadeh
Last active August 21, 2017 14:49
Show Gist options
  • Save superzadeh/ecc9a8e36de44d94900ad5c685295fb4 to your computer and use it in GitHub Desktop.
Save superzadeh/ecc9a8e36de44d94900ad5c685295fb4 to your computer and use it in GitHub Desktop.
[user]
name = Charles Ahmadzadeh
email = superzadeh@outlook.com
[push]
default = current
[core]
editor = code --wait
[alias]
ll = log --pretty=format:'%C(yellow)%h%Cred%d\\\\ %Creset%s%Cblue\\\\ [%cn]' --decorate --numstat
ls = log --pretty=format:'%C(yellow)%h%Cred%d\\\\ %Creset%s%Cblue\\\\ [%cn] - %Cgreen%ad' --decorate --date=short
l = --pretty=format:'%C(yellow)%h%Cred%d\\\\ %Creset%s%Cblue\\\\ [%cn] - %Cgreen%ad' --decorate --date=short
c = commit -am
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"
[pager]
# insanely beautiful diffs ==> npm install -g diff-so-fancy
diff = diff-so-fancy | less --tabs=4 -RFX
show = diff-so-fancy | less --tabs=4 -RFX
[diff]
tool = default-difftool
[difftool "default-difftool"]
cmd = code --wait --diff $LOCAL $REMOTE
[merge]
tool = kdiff3
[mergetool "kdiff3"]
path = C:/Program Files/KDiff3/kdiff3.exe
trustExitCode = false
# correct typos
[help]
autocorrect = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment