Skip to content

Instantly share code, notes, and snippets.

@kowal
Last active February 21, 2023 19:21
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 kowal/33f495737d0fd1f2f58e44fbbc736675 to your computer and use it in GitHub Desktop.
Save kowal/33f495737d0fd1f2f58e44fbbc736675 to your computer and use it in GitHub Desktop.
.gitconfig
[alias]
br = branch
co = checkout
cp = cherry-pick
dd = diff develop
dm = diff main
st = status
bn = symbolic-ref --short HEAD
amend = commit -a --amend
up = !clear && git fetch && git whatchanged --stat --pretty=format:'%Cred%h%Creset %C(bold blue)[%an]%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)' --date=relative ..origin
logs = log --pretty=oneline --graph
lg = log --graph --pretty=format:'%Cred%h%Creset %C(bold blue)[%an]%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)' --abbrev-commit --date=relative
changes = diff --name-status -r
whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -"
whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short
[user]
email = <EMAIL>
name = Marek Kowalcze
[rerere]
enabled = true
[diff "zip"]
textconv = unzip -c -a
[difftool]
prompt = false
[push]
default = current
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[interactive]
diffFilter = delta --color-only
[delta]
features = side-by-side line-numbers decorations
whitespace-error-style = 22 reverse
[delta "decorations"]
commit-decoration-style = bold yellow box ul
file-style = bold yellow ul
file-decoration-style = none
[pull]
ff = only
[core]
excludesfile = /Users/marek.kowalcze/.gitignore
pager = delta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment