Last active
October 24, 2019 21:17
-
-
Save sr75/2722493 to your computer and use it in GitHub Desktop.
gitconfig for git v1.8+ with terminal color and command aliases
This file contains hidden or 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
[user] | |
name = yourname | |
email = yourname @ whatever | |
[core] | |
excludesfile = yourhomedir/.gitignore | |
#git config --global core.eol lf | |
#git config --global core.autocrlf input | |
eol = lf | |
autocrlf = input | |
#git rm -rf --cached . | |
#git reset --hard HEAD | |
[diff] | |
[color] | |
ui = auto | |
[alias] | |
st = status | |
ci = commit | |
co = checkout | |
di = diff | |
dc = diff --cached | |
amend = commit --amend | |
aa = add --all | |
head = !git l -1 | |
h = !git head | |
r = !git --no-pager l -20 | |
ra = !git r --all | |
ff = merge --ff-only | |
pullff = pull --ff-only | |
l = log --graph --abbrev-commit --date=relative | |
la = !git l --all | |
div = divergence | |
gn = goodness | |
gnc = goodness --cached | |
fa = fetch --all | |
pom = push origin master | |
lho = log HEAD..origin | |
[format] | |
pretty=format:%C(yellow)%h%Creset -%C(red)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset | |
[merge] | |
tool = vimdiff | |
[push] | |
default = current | |
[pull] | |
default = current |
This file contains hidden or 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
# Editors # | |
########### | |
.vscode | |
.idea | |
*.iml | |
*.stackdump | |
*.retry | |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Python # | |
########## | |
venv | |
env | |
virturalenv | |
*.egg-info | |
*.pyc | |
.pytest_cache | |
__pycache__ | |
.cache | |
# Packages # | |
############ | |
# it's better to unpack these files and commit the raw source | |
# git has its own built in compression methods | |
*.7z | |
*.dmg | |
*.gz | |
*.iso | |
*.jar | |
*.rar | |
*.tar | |
*.zip | |
# Logs and databases # | |
###################### | |
*.log | |
*.sql | |
*.sqlite | |
# OS generated files # | |
###################### | |
.DS_Store | |
.DS_Store? | |
._* | |
.Spotlight-V100 | |
.Trashes | |
ehthumbs.db | |
Thumbs.db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment