Skip to content

Instantly share code, notes, and snippets.

@badsyntax
Created June 24, 2021 07:45
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 badsyntax/eaec5796873d3532c6a9d2a9067ac10c to your computer and use it in GitHub Desktop.
Save badsyntax/eaec5796873d3532c6a9d2a9067ac10c to your computer and use it in GitHub Desktop.
.gitconfig
[color]
ui = auto
[push]
default = current
[commit]
verbose = true
[color "branch"]
current = yellow bold
local = green bold
remote = cyan bold
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "status"]
added = green bold
changed = yellow bold
untracked = red bold
[core]
editor = vim
[merge]
tool = vscode
[mergetool "vscode"]
cmd = code --wait $MERGED
[diff]
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[alias]
current-branch = rev-parse --abbrev-ref HEAD
unstage = reset --soft HEAD^
set-upstream = !git branch --set-upstream-to=origin/"$(git current-branch)" "$(git current-branch)"
who = shortlog -n -s --no-merges
log-graph = log --graph --all --decorate --oneline --pretty='format:%Cgreen%h%Creset %an - %s'
oneline = log --pretty=oneline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment