Skip to content

Instantly share code, notes, and snippets.

@ajai8085
Created October 23, 2017 03:57
Show Gist options
  • Save ajai8085/6aa615bfc8f00327e91ce4bf22f42545 to your computer and use it in GitHub Desktop.
Save ajai8085/6aa615bfc8f00327e91ce4bf22f42545 to your computer and use it in GitHub Desktop.
Sample GitConfig c:\users\UserName\.gitconfig
[user]
name = name
email = [email protected]
[user]
email = [email protected]
[filter "lfs"]
smudge = git-lfs smudge -- %f
required = true
clean = git-lfs clean -- %f
[alias]
cosm = !sh -c 'git checkout \"$0\" && git submodule update --init --recursive'
pullsm = !sh -c 'git pull --rebase && git submodule update --init --recursive'
clonesm = clone --recursive $1
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
l = log --graph --pretty=format:'%C(yellow)%h%C(cyan bold)%d%Creset %s %C(white)- %C(black bold)%aN, %ar%Creset'
ll=log --graph --stat --abbrev-commit --decorate
[merge]
tool = TortoiseMerge
[diff]
guitool = winmerge
[core]
editor = \"c:/Program Files (x86)/GitExtensions/GitExtensions.exe\" fileeditor
autocrlf = True
excludesfile =C:/Users/Impos/.gitignore_global
[difftool "TortoiseMerge"]
path = c:/Program Files/TortoiseGit/bin/TortoiseGitMerge.exe
[difftool "tmerge"]
path = c:/Program Files/TortoiseGit/bin/TortoiseGitMerge.exe
cmd = \"c:/Program Files/TortoiseGit/bin/TortoiseGitMerge.exe\" \"$LOCAL\" \"$REMOTE\"
[mergetool "TortoiseMerge"]
path = c:/Program Files/TortoiseGit/bin/TortoiseGitMerge.exe
cmd = \"c:/Program Files/TortoiseGit/bin/TortoiseGitMerge.exe\" -base:\"$BASE\" -mine:\"$LOCAL\" -theirs:\"$REMOTE\" -merged:\"$MERGED\"
[difftool "winmerge"]
path = c:/Program Files (x86)/WinMerge/WinMergeU.exe
cmd = \"c:/Program Files (x86)/WinMerge/WinMergeU.exe\" -e -u \"$LOCAL\" \"$REMOTE\"
[credential]
helper = !\"C:\\Program Files (x86)\\GitExtensions\\GitCredentialWinStore\\git-credential-winstore.exe\"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment