Skip to content

Instantly share code, notes, and snippets.

@dy-dx
Last active August 7, 2024 13:37
Show Gist options
  • Save dy-dx/87dc4eacf72e2f4753ed to your computer and use it in GitHub Desktop.
Save dy-dx/87dc4eacf72e2f4753ed to your computer and use it in GitHub Desktop.
[push]
default = simple
[pull]
ff = only
[core]
whitespace = cr-at-eol
# https://stackoverflow.com/a/10584237
pager = less -x1,5
[color]
ui = true
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = yellow
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[alias]
c = commit
ca = commit --amend --no-edit
co = checkout
cb = checkout -b
d = diff
dc = diff --cached
l = log --graph -n 30 --pretty=format':%C(yellow)%h%C(auto)%d%Creset %s %C(white) %an, %ar%Creset'
lol = log -n 100 --pretty=oneline --abbrev-commit --graph --decorate
s = status -sb
sl = stash list
rb = rebase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment