Skip to content

Instantly share code, notes, and snippets.

@andrexx
Created August 23, 2017 09:12
Show Gist options
  • Save andrexx/267c3571289d258faebb5c79122b5564 to your computer and use it in GitHub Desktop.
Save andrexx/267c3571289d258faebb5c79122b5564 to your computer and use it in GitHub Desktop.
git coonfig template
[user]
name = XXX
email = XXX
[core]
preloadindex = true
fscache = true
autocrlf = true
[http]
sslVerify = false
[push]
default = simple
[gc]
auto = 256
[difftool "sourcetree"]
cmd = 'C:/Program Files/KDiff3/kdiff3.exe' \"$LOCAL\" \"$REMOTE\"
[mergetool "sourcetree"]
cmd = 'C:/Program Files/KDiff3/kdiff3.exe' \"$BASE\" \"$LOCAL\" \"$REMOTE\" -o \"$MERGED\"
trustExitCode = true
[credential]
helper = manager
[alias]
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold magenta)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold magenta)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[url "https://github.com/"]
insteadOf = git://github.com/
[merge "ours"]
driver = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment