Skip to content

Instantly share code, notes, and snippets.

@mcwienczek
Last active May 18, 2018 07:09
Show Gist options
  • Save mcwienczek/8686b31f1f64dd35102f to your computer and use it in GitHub Desktop.
Save mcwienczek/8686b31f1f64dd35102f to your computer and use it in GitHub Desktop.
[core]
autocrlf = true
[user]
email = michael.cwienczek@gmail.com
name = Michal Cwienczek
[alias]
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
cm = "!git add -A && git commit -m"
st = status -s
co = checkout
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 --author-date-order
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"
reset-checkout = "!f() { git diff --cached \"$@\" | git apply -R --index; }; f"
cmdate = "!git add -A && git commit -m \"$(date)\""
[push]
default = simple
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[credential]
helper = manager
[rerere]
enabled = false # Reuse recorded resolution of conflicted merges # see `man git-rerere'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment