-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
37 lines (37 loc) · 1.21 KB
/
.gitconfig
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
[color]
ui = true
diff = auto
status = auto
branch = auto
[alias]
co = checkout
ci = commit
st = status
s = status
d = diff
b = branch
f = fetch
p = pull
m = merge
a = add
cp = cherry-pick
ls = ls-files
lsu = git ls-files -o --exclude-standard
#up = !(git pull || ((git stash && git pull --rebase >&2) | grep -v "No local changes to save" && git stash pop))
#up = !(git stash && git pull --rebase >&2) | grep -v \"No local changes to save\" && git stash pop
#u = !git up
#re = "!f() { git reset $1; git checkout $1; }; f; f"
#re = "!f() { git reset $1; git checkout $1; git reset $1; git checkout $1; }; f"
#re1 = "!f() { git reset $1; git checkout $1; }; f"
#ups = !(git fetch upstream && git merge upstream/master)
#upd = !(git fetch && git merge origin/dev)
#du = !(git fetch upstream && git diff upstream/master)
#dd = !(git fetch && git diff origin/dev)
[core]
editor = vim
excludesfile = ~/.gitignore
[user]
[push]
default = current
[credential]
helper = cache --timeout=8640000