Skip to content

Instantly share code, notes, and snippets.

@labbots
Created February 2, 2018 10:32
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 labbots/7d9cae8d712f726b814aa8b91b4a8eb5 to your computer and use it in GitHub Desktop.
Save labbots/7d9cae8d712f726b814aa8b91b4a8eb5 to your computer and use it in GitHub Desktop.
Git config
[user]
name = you name
email = you_email_address
[alias]
# nice log output
lg = log --graph --pretty=oneline --abbrev-commit --decorate
# start git-sh
sh = !git-sh
[color]
# turn on color
diff = auto
status = auto
branch = auto
interactive = auto
ui = auto
[color "branch"]
current = green bold
local = green
remote = red bold
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = green bold
changed = yellow bold
untracked = red
[color "sh"]
branch = yellow
workdir = blue bold
dirty = red
[core]
excludesfile = /home/user/.gitignore
# two-space tabs
pager = less -FXRS -x2
[push]
# 'git push' should only do the current branch, not all
default = current
[branch]
# always setup 'git pull' to rebase instead of merge
autosetuprebase = always
[diff]
renames = copies
mnemonicprefix = true
[cerdential]
helper = cache
helper = cache
[credential]
helper = cache --timeout=3600
[diff]
tool = meld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment