Skip to content

Instantly share code, notes, and snippets.

@tomaszprasolek
Last active March 3, 2019 11:00
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 tomaszprasolek/bebc6638d0611ca32290bd0dd5318f45 to your computer and use it in GitHub Desktop.
Save tomaszprasolek/bebc6638d0611ca32290bd0dd5318f45 to your computer and use it in GitHub Desktop.
[user]
name = "TO FILL"
email = "TO FILL"
[core]
autocrlf = true
excludesfile = C:\\Users\\tpraso\\Documents\\gitignore_global.txt
#editor = "'C:\\Program Files\\Sublime Text 3\\sublime_text.exe' -w -n"
editor = "'C:\\Program Files\\Sublime Text 3\\subl.exe' -w -n"
[alias]
lg = log --color --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd) %C(yellow)<%an>%Creset' --date=human
lgg = log -15 --color --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd) %C(yellow)<%an>%Creset' --date=human
st = status
co = checkout
ca = commit --amend
cane = commit --amend --no-edit
aca = !git add -A && git commit --amend
pr = "!f() { exec vsts code pr \"$@\"; }; f"
repo = "!f() { exec vsts code repo \"$@\"; }; f"
ignored = "!git ls-files -v | grep \"^[[:lower:]]\""
com = !git add -A && git commit
open = "!f() { REPO_URL=$(git config remote.origin.url); explorer ${REPO_URL%%.git}; }; f"
browse = !git open
[merge]
tool = kdiff3
[mergetool "kdiff3"]
path = C:/Program Files/KDiff3/kdiff3.exe
[diff]
tool = kdiff3
guitool = kdiff3
[difftool "kdiff3"]
path = C:/Program Files/KDiff3/kdiff3.exe
[fetch]
prune = true
[pull]
rebase = true
[difftool]
prompt = false
[push]
followTags = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment