Skip to content

Instantly share code, notes, and snippets.

@miphe

miphe/.gitconfig

Created Jun 23, 2016
Embed
What would you like to do?
Git config example
[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
@miphe

This comment has been minimized.

Copy link
Owner Author

@miphe miphe commented Jun 23, 2016

Edit your global config file with the following command:
git config --global --edit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.