Created
February 25, 2021 18:30
-
-
Save lukasjoc/7c736ef91d141f5e8b53ec7b3d2adfae to your computer and use it in GitHub Desktop.
git config with aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[core] | |
autocrlf = false | |
excludesfile = .gitignore | |
quotepath = false | |
editor = vim | |
[help] | |
autocorrect=1 | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
interactive = auto | |
ui = true | |
pager = true | |
[alias] | |
br = branch -vv | |
bra = branch -a | |
ch = checkout | |
st = status | |
diff = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat" | |
last = log --pretty=oneline -n 20 --graph --abbrev-commit | |
lg = log --color --decorate --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an (%G?)>%Creset' --abbrev-commit | |
contrib = shortlog --summary --numbered | |
env = !git config -l | sort | |
[filter "lfs"] | |
clean = git-lfs clean -- %f | |
smudge = git-lfs smudge -- %f | |
process = git-lfs filter-process | |
required = true | |
# Prefer mergeing | |
[pull] | |
rebase = false | |
[user] | |
name = | |
email = |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment