forked from gvaughn/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
67 lines (67 loc) · 2.47 KB
/
gitconfig
File metadata and controls
67 lines (67 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[user]
name = Greg Vaughn
# prefer to keep email in individual repos' config
# Use GIT_AUTHOR_EMAIL env var to override
[push]
default = tracking
[alias]
up = add -u
hist = log --pretty=format:'%Cred%h%Creset %C(yellow)%ad%Creset | %s%Cgreen%d %Cblue[%an]%Creset' --graph --date=short
mhist = log --pretty=format:'%Cred%h%Creset %C(yellow)%ad%Creset | %s%Cgreen%d %Cblue[%an]%Creset' --graph --date=short --author greg.vaughn
g = log --oneline --all --graph --decorate --color
ll = log ORIG_HEAD..HEAD --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
lol = log --graph --decorate --pretty=oneline --abbrev-commit
so = commit -v --amend --signoff
peek = show --name-only
changed = !git log --pretty="format:" --name-only head ORIG_HEAD..HEAD | sort | uniq
yamldelta = !git log --pretty="format:" --name-only head $LASTHEAD..$CURHEAD | sort | uniq | grep ".*locales/deals.*yml"
headsha = rev-parse head
amend = !git commit --amend -C HEAD --date \"`date`\"
co = checkout
br = branch
ci = commit
st = status
cl = checkout @{-1} # checkout last branch
bdiff = !git diff `git merge-base HEAD origin/master` #diff of branch back to branch point
unstage = reset HEAD --
last = log -1 HEAD
sync = "!f() { echo syncing with master && git checkout master && git pull && git checkout - && git rebase master; }; f"
pruneall = "!f() { git remote | xargs -n 1 git remote prune; }; f"
rtree = ls-tree -r -t master^{tree}
prs= "!f() { open http://svn.livingsocial.com/dashboard/pulls; }; f"
ctags = !.git/hooks/ctags
fixup = "!f() { git commit --amend -C HEAD --date \"`date`\"; }; f"
mru = "!f() { git for-each-ref --format='%(authordate:relative)%09%(refname:short)%0a%(subject)%0a' --sort=-committerdate refs/heads | head -20; }; f"
#newpr= "!f() { open http://svn.livingsocial.com/$(git config --get github.user)/deals/pull/new/$(git symbolic-ref head | sed -e 's/.*\///g'); }; f"
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
editor = /usr/bin/vim
excludesfile = ~/.gitignore_global
[rerere]
enabled = true
[branch]
autosetuprebase = always
[hub]
host = code.livingsocial.net
[credential]
helper = osxkeychain
[init]
templatedir = ~/dotfiles/git_template
[diff]
algorithm = patience
[mergetool]
keepBackup = false