-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
58 lines (54 loc) · 1.9 KB
/
.gitconfig
File metadata and controls
58 lines (54 loc) · 1.9 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
[alias]
ci = commit
cia = commit --amend
ciaa = commit --amend -a
co = checkout
staged = diff --cached
unstage = reset HEAD
ss = status --short --branch
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%an <%ae>%Creset' --abbrev-commit
lga = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%an <%ae>%Creset' --abbrev-commit --all
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
out = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%an <%ae>%Creset' --abbrev-commit --branches --not --remotes
rollback = reset --soft HEAD~1
st = status -s
df = diff --color --color-words --abbrev
dfc = diff --cached --color --color-words --abbrev
cl = clone --recurse-submodules
accept-ours = "!f() { git checkout --ours -- \"${@:-.}\"; git add -u \"${@:-.}\"; }; f"
accept-theirs = "!f() { git checkout --theirs -- \"${@:-.}\"; git add -u \"${@:-.}\"; }; f"
rbc = rebase --continue
rba = rebase --abort
grepall = "!f() { git rev-list --all | (while read rev; do git grep -e \"$1\" $rev; done); }; f"
[fetch]
recurseSubmodules = yes
[push]
default = current
[color]
ui = auto
[log]
decorate = full
[branch]
autosetuprebase = always
[achievement]
upload = true
[include]
path = ~/.gituser
[http]
postBuffer = 524288000
[https]
postBuffer = 524288000
[core]
excludesfile = ~/.gitignore
editor = vim
[credential]
helper = cache --timeout=-1
[url "git+ssh://mastier1@git.launchpad.net/"]
insteadof = lp:
[url "ssh://git@github.com/"]
insteadOf = https://github.com/
# REMINDER: this will not work, because git will use ssh config first
# the works only for https urls
#[credential "git+ssh://git.launchpad.net/cpe-deployments"]
# username = "mastier1"