Skip to content

Instantly share code, notes, and snippets.

@rockstar2046
Created February 25, 2020 14:00
Show Gist options
  • Save rockstar2046/dc342917a60279604d177a23ade2fcfc to your computer and use it in GitHub Desktop.
Save rockstar2046/dc342917a60279604d177a23ade2fcfc to your computer and use it in GitHub Desktop.
gitconfig
[user]
name =
email =
[core]
editor = vim
autocrlf = input
excludesfile = ~/.gitignore_global
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[merge]
ff = false
tool = vimdiff
[alias]
l = log --stat
ll = log --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --date=short
lls = log --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --date=short --stat
lga = log --graph --decorate --abbrev-commit --all
lgas = log --graph --decorate --abbrev-commit --all --stat
lgac = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold green)%an%Creset %Cgreen<%ae>%Creset' --abbrev-commit --all
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg1s = log --stat --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg2s = log --stat --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"
lgs = !"git lg1s"
s = status
a = add
b = branch
c = checkout
cp = cherry-pick
m = commit
d = diff
dt = difftool
ds = diff --name-status
t = tag
r = remote
[push]
default = matching
[diff]
tool = vimdiff
[difftool]
prompt = false
[mergetool]
prompt = false
keepBackup = false
[http]
proxy =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment