Skip to content

Instantly share code, notes, and snippets.

@coop
Created May 16, 2011 03:36
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 coop/973891 to your computer and use it in GitHub Desktop.
Save coop/973891 to your computer and use it in GitHub Desktop.
Git Config
[github]
user = coop
token = 1234
[user]
name = Tim Cooper
email = coop@latrobest.com
[apply]
whitespace = nowarn
[alias]
tug = pull
c = commit -v
co = checkout
nb = checkout -b
put = push origin HEAD
track = !git-track
thanks = !git-thanks
workdir = !git-new-workdir
up = !git pull --rebase && git push
ignored = "!git ls-files --others --exclude-standard"
pending = !git --no-pager log origin/master..master && echo
db = !sh -c 'git branch -D "$0" && git push origin ":$0"' &> /dev/null
missing = !sh -c 'git cherry "$0" | cut -sd + -f 2 | xargs "git show"'
lc = log ORIG_HEAD.. --stat --no-merges
conflicts = !git ls-files --unmerged | cut -c51- | sort -u | xargs $EDITOR
resolve = !git ls-files --unmerged | cut -c51- | sort -u | xargs git add
unstage = reset HEAD
subadd = !sh -c 'git submodule add $(git config -f"$0".git/config remote.origin.url) "$0"'
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
cleanup = !git remote prune origin && git gc && git clean -dfx && git stash clear
who = shortlog -n -s --no-merges
[format]
# pretty = format:"%Cblue%ar%Creset\t%s"
[color]
diff = auto
status = auto
branch = auto
[core]
excludesfile = /Local/Users/timc/.gitignore
editor = mate -w
[mirror]
summary = true
[branch]
# autosetupmerge = true
autosetuprebase = always
[push]
default = tracking
[rebase]
autosquash = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment