forked from divad12/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
59 lines (47 loc) · 1.78 KB
/
.gitconfig
File metadata and controls
59 lines (47 loc) · 1.78 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
# TODO: https://github.com/rtomayko/dotfiles/blob/rtomayko/.gitconfig
# TODO: http://stackoverflow.com/questions/267761/what-does-your-gitconfig-contain
[core]
editor = /usr/bin/vim # http://tooky.github.com/2010/04/08/there-was-a-problem-with-the-editor-vi-git-on-mac-os-x.html
whitespace = trailing-space,space-before-tab # http://stackoverflow.com/questions/591923/make-git-automatically-remove-trailing-whitespace-before-committing
excludesfile = ~/.gitignore_global
[user]
name = David Hu
email = davidhu91@gmail.com
[color]
status = auto
branch = auto
diff = auto
interactive = auto
[branch]
# auto-adds the --track flag to git branch. Helps out arc (for Phabricator).
autosetupmerge = always
[alias]
co = checkout
graph = log --graph --decorate --oneline --pretty=format:"%h%x20%Cgreen%d%x20%Cred%an%x20%Cblue%ad%x20%Creset%s" --all --full-history --date=short
st = status
ci = commit
br = branch
df = diff
dfs = diff --staged
ls-ignored = ls-files --exclude-standard --ignored --others
lp = log -p
bw = blame -w # Ignore whitespace changes
outgoing = log origin/master..HEAD
incoming = "!git fetch $1; git log HEAD..$1/master"
[apply]
whitespace = fix # http://stackoverflow.com/questions/591923/make-git-automatically-remove-trailing-whitespace-before-committing
[merge]
tool = vimdiff
# Always show a diffstat at the end of a merge
stat = true
[rebase]
# Always show a diffstat at the end of a rebase
stat = true
[diff]
# Use mnemonic prefixes (index, work tree, commit, object) instead of the standard a and b notation
mnemonicprefix = true
# Detect renames as well as copies
renames = copies
[push]
# Push the current branch to its upstream branch if no refspec given, instead of all branches (the default)
default = upstream