Skip to content

Instantly share code, notes, and snippets.

@ericdill
Created May 25, 2021 19:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericdill/5662bb58fca90d7ff45740dd43f0b602 to your computer and use it in GitHub Desktop.
Save ericdill/5662bb58fca90d7ff45740dd43f0b602 to your computer and use it in GitHub Desktop.
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[hub]
protocol = ssh
[user]
email = <email>
name = Eric Dill
signingkey = BD2FA590
username = ericdill
[core]
whitespace = lf-at-eol
editor = vim
autocrlf = input
preloadindex = true
pager =
filemode = false
[credential]
helper = cache --timeout 36000000
[push]
default = current
[alias]
lg1 = log --graph --abbrev-commit --decorate --date=relative --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
lg = !"git lg1"
ls = log --oneline --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ar)%Creset'
vimdiff = !sh -c 'git diff | view -'
linelog = "!fcn() { git log -L $1,$2:$3; }; fcn"
new = !sh -c 'git log $1@{1}..$1@{0} "$@"'
st = status -s
co = !"git checkout"
cp = !"git cherry-pick"
[rerere]
enabled = 1
[grep]
lineNumber = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment