Links
Snippets
[alias]
caa = commit -a --amend -C HEAD
wip = commit -a -m "wip"
wipm = commit -a -m
flush = commit -a -m "flush"
br = !git branch | grep '^\\* .*'
init-empty = ! (git init . && git commit --allow-empty -m '"Empty root commit."')
lg = log --graph --pretty='%C(black)%h%Creset %C(red)%d%Creset %C(green)(%cr)%Creset %C(blue)%an%Creset %s'
sts = !git status -s -uno && git branch | grep '^\\* .*'
st = !git status && git branch | grep '^\\* .*'
mkpatch = format-patch -k --stdout
[color]
diff = auto
grep = auto
interactive = auto
status = auto
branch = auto
showbranch = auto
ui = auto
[core]
excludesfile = /.../core.excludesfile # .gitignore
logallrefupdates = true
[format]
pretty = "commit %H %cr %an %s"
[user]
email = <email address>
name = <Full Name>
[rebase]
autosquash = 1
[rerere]
enabled = 1
[url "ssh://subdomain.domain.tld/absolute/base/path"]
insteadOf = <first part of some url= value>
[merge]
tool = opendiff
# Sample showing a way to:
# • fetch and namespace github pull requests
# • namespace remote tags
[remote "angular"]
url = [email protected]:angular/angular.js.git
fetch = +refs/heads/*:refs/remotes/angular/*
# Ref: http://stackoverflow.com/a/5496610
tagopt = --no-tags
fetch = +refs/tags/*:refs/tags/angular/*
# Fetch all github pull requests.
fetch = +refs/pull/*/head:refs/pull/angular/*