Created
June 23, 2016 08:00
-
-
Save miphe/02b6ae6db949a0016a94fa18de94120a to your computer and use it in GitHub Desktop.
Git config example
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
[user] | |
email = your@email.com | |
name = Your Name | |
[core] | |
editor = nano | |
[color] | |
ui = auto | |
[log] | |
date = local | |
[alias] | |
com = commit | |
ci = commit | |
co = checkout | |
br = branch | |
brr = branch -r | |
bra = branch -a | |
st = status | |
conflicts = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; subl `f`" | |
logdiffs = "!f() { git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative "$1".."$2"; }; f" | |
[push] | |
default = simple |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Edit your global config file with the following command:
git config --global --edit