-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
41 lines (41 loc) · 1.09 KB
/
gitconfig
File metadata and controls
41 lines (41 loc) · 1.09 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
[url "git@github.com:"]
insteadOf = https://github.com/
[url "git@gitlab.otters.xyz:"]
insteadOf = https://gitlab.otters.xyz/
[remote]
prune = true
[user]
name = Iñaki Quesada
email = iquesada@piedresybarro.com
[color]
ui = true
[core]
autocrlf = false
[push]
default = current
[pull]
rebase = true
[rerere]
enabled = true
[alias]
s = status -s
lg = log --oneline --decorate --all --graph
lol = log --graph --decorate --pretty=oneline --abbrev-commit --all
co = checkout
ci = commit -m
p = push
pl = pull
a = add .
acp = !sh -c 'git add . && git commit -m \"$1\" && git push' -
cp = !sh -c 'git commit -m \"$1\" && git push' -
ac = !sh -c 'git add . && git commit -m \"$1\"' -
m = checkout master
ma = checkout main
bcm = !sh -c 'git checkout master && git branch --merged | egrep -v \"(^\\*|master)\" | xargs git branch -d'
bc = !sh -c 'git checkout main && git branch --merged | egrep -v \"(^\\*|main)\" | xargs git branch -d'
[diff]
tool = default-difftool
[difftool "default-difftool"]
cmd = code --wait --diff $LOCAL $REMOTE
[merge]
tool = vim