-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
87 lines (82 loc) · 2.5 KB
/
gitconfig
File metadata and controls
87 lines (82 loc) · 2.5 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[user]
name = Chris Pride
email = cpride@cpride.net
[branch]
autosetuprebase = always
[pack]
deltaCacheSize = 1073741824
#compression = 9
#windowMemory = 16g
depth = 50
window = 10
deltaCacheLimit = 10000
threads = 28
[core]
# Treat spaces before tabs, lines that are indented with 8 or more spaces, and all kinds of trailing whitespace as an error
whitespace = space-before-tab,indent-with-non-tab,trailing-space
askpass = ""
abbrev = 12
[merge]
# Include summaries of merged commits in newly created merge commit messages
log = true
[push]
default = simple
[color]
# Use colors in Git commands that are capable of colored output when outputting to the terminal
ui = auto
[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
[alias]
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!f() { git push -u origin ${1-$(git branch-name)}; }; f"
# Delete the remote version of the current branch
unpublish = "!f() { git push origin --delete ${1-$(git branch-name)}; }; f"
# Unstage any files that have been added to the staging area
unstage = reset HEAD
unadd = reset HEAD
# Checkout our version of a file and add it
ours = "!f() { git checkout --ours $@; }; f"
# Checkout their version of a file and add it
theirs = "!f() { git checkout --theirs $@; }; f"
# Show commit log as a graph
graphlog = log --pretty=oneline -n 500 --graph --abbrev-commit
# Check to see how to commits are related.
is-ancestor = "!f() { \
if [ $# -ne 2 ]; then \
echo \"usage: git is-ancestor <REV1> <REV2>\n\"; \
exit 2; \
fi; \
if $( git merge-base --is-ancestor $1 $2 ); then \
echo \"$1 is an ancestor of $2\"; \
exit 0; \
elif $( git merge-base --is-ancestor $2 $1 ); then \
echo \"$2 is an ancestor of $1\"; \
exit 0; \
else \
echo \"$1 and $2 are not related\"; \
exit 1; \
fi \
}; \
f"
st = status
co = checkout
ci = commit
[pull]
rebase = true
[rebase]
autoStash = true