Skip to content

Instantly share code, notes, and snippets.

@miku

miku/.gitconfig Secret

Last active August 29, 2015 14:10
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 miku/071f358e4ef05ea351f3 to your computer and use it in GitHub Desktop.
Save miku/071f358e4ef05ea351f3 to your computer and use it in GitHub Desktop.
Suggestion for your $HOME/.gitconfig
[core]
pager = less -FRSX # http://explainshell.com/explain?cmd=less+-FRSX
editor = vim
preloadindex = true # Enable parallel index preload for operations like git diff
compression = 9
[color]
ui = auto
[alias]
ci = commit
st = status
br = branch
co = checkout
df = diff
who = shortlog -s --
todo = grep --heading --break --ignore-case -e ' FIX: *' -e ' TODO: *'
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
oneline = log --pretty=oneline
tree = log --graph --pretty=oneline --decorate
authors = shortlog -sn
serve = !git daemon --reuseaddr --verbose --base-path=. --export-all ./.git
lg = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
[instaweb]
local = true
httpd = webrick
port = 1234
browser = firefox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment