Created
April 5, 2012 12:19
-
-
Save lotsofcode/2310547 to your computer and use it in GitHub Desktop.
Git config file
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
# @use --global flag to assign to home ~/.gitconfig instead of local ~/.git/config file | |
# For example | |
# Disable filemode changes. | |
# $ git config core.filemode false | |
# Disable filemode changes globally. | |
# $ git config --global core.filemode false | |
# To assign the default colour without specifying every colour type | |
# $ git config --global color.ui true | |
# Set my default editor | |
# $ git config --global core.editor nano | |
# There are three configuration files (system, user, repo) that | |
# can assign configuration settings, to see what value is | |
# being used, you can use the --get flag: | |
# $ git config --get core.filemode | |
# ... or even simpler ... | |
# $ git config core.filemode | |
[user] | |
name = Del Harvey | |
email = EMAIL_ADDRESS | |
[alias] | |
lg = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr %an)%Creset' --abbrev-commit --date=relative | |
st = status -s | |
ci = commit -am | |
dm = diff master | |
dmn = diff master --name-only | |
dms = diff master --stat | |
up = em.update | |
mm = merge master | |
[color] | |
diff = always | |
status = always | |
ui = true | |
[color "diff"] | |
meta = yellow | |
frag = cyan | |
old = red | |
new = green | |
[color "status"] | |
meta = yellow | |
frag = cyan | |
old = pink | |
new = green | |
[core] | |
editor = nano |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment