Skip to content

Instantly share code, notes, and snippets.

@miphe
Created June 23, 2016 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miphe/02b6ae6db949a0016a94fa18de94120a to your computer and use it in GitHub Desktop.
Save miphe/02b6ae6db949a0016a94fa18de94120a to your computer and use it in GitHub Desktop.
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
Copy link
Author

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