Last active
August 29, 2015 14:04
-
-
Save sameei/e12a167fdfc4414c0ec5 to your computer and use it in GitHub Desktop.
~/.gitconfig
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 = {{ forename surname }} | |
email = {{ email }} | |
[core] | |
editor = vim | |
# excludesfile = default -> $XDG_CONFIG_HOME/git/ignore or $HOME/.config/git/ignore | |
# # ignores | |
# # # .idea/ | |
# # # .project | |
# # # .settings | |
# # # /nbproject/ | |
# # # *.pyc | |
# # # .directory | |
# # # .notes | |
# # # *~ | |
[alias] | |
st = status | |
ci = commit | |
visual = !gitk | |
co = checkout | |
lg = log --graph --pretty=format:'%Cgreen%h%Creset -%Creset %s%C(yellow)%d %Cblue(%aN, %cr)%Creset' --abbrev-commit --date=relative | |
heir = log --all --graph --decorate --oneline --simplify-by-decoration | |
ls-orig = ! git ls-files --others | grep orig | |
rm-orig = ! git ls-orig | xargs rm | |
br = branch | |
undo = "!git reset --hard && git clean -fd && echo [ OK ]" | |
topten = log --oneline -10 | |
[merge] | |
tool = vimdiff | |
[color] | |
ui = auto | |
[filter "tabspace"] | |
smudge = unexpand --tabs=3 --first-only | |
clean = expand --tabs=3 --inital | |
# http://stackoverflow.com/questions/2316677/can-git-automatically-switch-between-spaces-and-tabs | |
# http://stackoverflow.com/questions/540535/managing-large-binary-files-with-git | |
# git/info/attributes | |
# *.jpg binary | |
# *.png binary | |
# *.xls binary | |
# *.jar binary | |
# *.class binary | |
# *.woff binary | |
# *.ttf binary | |
# *.eot binary | |
# *.ico binary | |
# *.pdf binary |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment