Skip to content

Instantly share code, notes, and snippets.

@andershammar
Created November 4, 2018 14:11
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 andershammar/a33a01987a80bb2ec08b20ff6f563bfc to your computer and use it in GitHub Desktop.
Save andershammar/a33a01987a80bb2ec08b20ff6f563bfc to your computer and use it in GitHub Desktop.
My gitconfig
[user]
name = Firstname Lastname
email = firstname.lastname@email.com
[color]
ui = auto
[core]
editor = code --wait
# editor = vim
[alias]
bl = blame
br = branch
ci = commit
cl = clone
co = checkout
cp = cherry-pick
dc = diff --cached
df = diff
dt = difftool
lg = log --decorate
mt = mergetool
prb = pull --rebase
rb = rebase
rbi = rebase --interactive
sh = show
st = status
wc = whatchanged
[diff]
tool = code-difftool
[merge]
tool = code-difftool
#conflictstyle = diff3
[push]
default = simple
[rebase]
autosquash = true
[difftool "code-difftool"]
cmd = code --wait --diff $LOCAL $REMOTE
[difftool "kdiff3-difftool"]
cmd = kdiff3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment