-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgitconfig
More file actions
78 lines (71 loc) · 1.94 KB
/
Copy pathgitconfig
File metadata and controls
78 lines (71 loc) · 1.94 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
# This git config file is for git 1.5.4
# Check if is compatible with git 1.6
# vim :set noexpandtab sw=8:
[user]
name = Anthony PERARD
email = anthony.perard@gmail.com
[color]
diff = auto
status = auto
ui = auto
[diff]
renames = yes
[alias]
# Submodule init
subi = submodule init
# Submodule update
subu = submodule update
# Branch
br = branch
# Branch -a
bra = branch -a
sta = stash
stap = stash apply
stas = stash show
st = status
ci = commit
cis = commit -s
co = checkout
diffi = diff -C --cached
dif = diff -C
di = diff -C
dii = diff -C --cached
diffstat = diff -C --stat
ds = diff -C --stat
dsi = diff -C --stat --cached
diffw = diff -C --ignore-all-space
diffwi = diff -C --ignore-all-space --cached
diffiw = diff -C --ignore-all-space --cached
dw = diff -C --ignore-all-space
dwi = diff -C --ignore-all-space --cached
dsw = diff -C --stat --ignore-all-space
dws = diff -C --stat --ignore-all-space
dswi = diff -C --stat --ignore-all-space --cached
dsiw = diff -C --stat --ignore-all-space --cached
gcp = gc --prune
gcpa = gc --prune --aggressive
gr=!cd `git rev-parse --git-dir`/.. && git grep
svnup=!git svn fetch && git svn rebase
# Alias for git rebase -i
fixup = !sh -c 'git commit -m \"fixup! $(git log -1 --format='\\''%s'\\'' $@)\"' -
squash = !sh -c 'git commit -m \"squash! $(git log -1 --format='\\''%s'\\'' $@)\"' -
ri = rebase --interactive --autosquash
id = log --pretty=format:%h -1
[core]
legacyheaders = false
excludesfile = ~/.gitignore
[repack]
usedeltabaseoffset = true
[gui]
diffcontext = 3
fontdiff = -family Courier -size 12 -weight normal -slant roman -underline 0 -overstrike 0
[push]
default = current
[format]
signature = Anthony PERARD
[tig]
line-graphics = true
show-rev-graph = true
ignore-case = true
[tig "bind"]
main = O !git checkout %(commit)