Skip to content

Instantly share code, notes, and snippets.

@ggsalas
Last active July 20, 2019 21:50
Show Gist options
  • Save ggsalas/c19160e1025bc9df7f9f1b8d50b72d68 to your computer and use it in GitHub Desktop.
Save ggsalas/c19160e1025bc9df7f9f1b8d50b72d68 to your computer and use it in GitHub Desktop.
My ~/.gitconfig
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = Gabriel Salas
email = ggsalas@gmail.com
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
dt = difftool
ch = checkout
br = branch
co = commit -m
st = status -s
cp = cherry-pick
ls = log --pretty=format:"%C(green)%h\\ %C(yellow)[%ad]%Cred%d\\ %Creset%s%C(magenta)\\ [%an]" --decorate --date=relative
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%C(magenta)\\ [a:%an,c:%cn]" --decorate --numstat
[github]
user = ggsalas
[core]
editor = nvim
[diff]
tool = vimdiff
[difftool "vimdiff"]
cmd = nvim -d ~/.vimrc \"$LOCAL\" \"$REMOTE\"
[mergetool "vimdiff"]
cmd = nvim -d \"$MERGED\" \"$REMOTE\"
; cmd = nvim -d \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\"
[difftool]
prompt = true
[merge]
tool = vimdiff
[mergetool]
path = nvim
keepBackup = false
[mergetool "vimdiff"]
path = nvim
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[color "status"]
added = green
changed = red
untracked = blue
deleted = red
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment