Skip to content

Instantly share code, notes, and snippets.

@mfominov
Created March 9, 2021 15:56
Show Gist options
  • Save mfominov/b0f115be53fbaee5e5050f5a38340f89 to your computer and use it in GitHub Desktop.
Save mfominov/b0f115be53fbaee5e5050f5a38340f89 to your computer and use it in GitHub Desktop.
[apply]
whitespace = nowarn
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
up = pull --rebase --autostash
aliases = !git config --list | grep ^alias\\. | cut -c 7- | grep -Ei --color \"$1\" "#"
logp = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
lg = log --graph --date-order --first-parent --pretty=format:'%C(auto)%h%Creset %C(auto)%d%Creset %s %C(green)(%ad) %C(boldcyan)<%an>%Creset'
lgb = log --graph --date-order --branches --first-parent --pretty=format:'%C(auto)%h%Creset %C(auto)%d%Creset %s %C(green)(%ad) %C(boldcyan)<%an>%Creset'
lga = log --graph --date-order --all --pretty=format:'%C(auto)%h%Creset %C(auto)%d%Creset %s %C(green)(%ad) %C(boldcyan)<%an>%Creset'
ignored = ! git ls-files --others --ignored --exclude-standard --directory && git ls-files --others -i --exclude-standard
[core]
excludesfile = ~/.gitignore_global
editor = code --wait
[mergetool "vscode"]
cmd = code --wait $MERGED
[merge]
tool = vscode
[diff]
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[commit]
template = ~/.stCommitMsg
gpgsign = true
[filter "nocommit"]
clean = grep -v NOCOMMIT
[pull]
rebase = true
[branch]
autosetuprebase = always
[rebase]
autosquash = true
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[gpg]
program = gpg2
# https://github.com/microsoft/vscode/issues/40354#issuecomment-392552715
# gitlab
[includeIf "gitdir/i:~/git/gitlab/"]
path = ~/git/gitlab/.gitconfig
# github
[includeIf "gitdir/i:~/git/github/"]
path = ~/git/github/.gitconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment