-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
52 lines (48 loc) · 1.31 KB
/
.gitconfig
File metadata and controls
52 lines (48 loc) · 1.31 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
[http]
sslVerify = false
[credential]
helper = cache --timeout=3600
[core]
# Recommended to display file names with umlauts un-encoded.
quotePath = false
[advice]
# Do not warn about detached head state.
detachedHead = false
[push]
default = simple
[fetch]
# Remove any remote-tracking references that no longer exist on the remote.
prune = true
[diff]
tool = meld
[difftool]
prompt = false
[difftool "meld"]
cmd = meld "$LOCAL" "$REMOTE"
[merge]
tool = meld
[mergetool "meld"]
cmd = meld "$LOCAL" "$MERGED" "$REMOTE" --output "$MERGED"
[alias]
# Misc.
s = status
co = checkout
lg = log --oneline --all --graph
# Show which submodules contain un-pushed commits.
ups = submodule foreach --recursive 'git log --branches --not --remotes'
# git diff.
d = diff
dc = diff --staged
# git commit.
ci = commit
cim = commit --message
cima = commit --all --message
# Index-related commands.
a = add
aa = add --all
# git clean.
# Clean all untracked and ignored files except .idea.
# Because of the second f it also removes git repositories inside ignored directories.
cleanf = clean -xdff -e .idea
# Clean all ignored files in all submodules.
cleansf = submodule foreach --recursive git clean -Xdf