-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
56 lines (56 loc) · 1.23 KB
/
Copy path.gitconfig
File metadata and controls
56 lines (56 loc) · 1.23 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
[user]
email = joaopaquim@gmail.com
name = jpaquim
[core]
editor = vim
[pull]
ff = only
[push]
default = current
[alias]
amend = commit --amend
br = branch
brd = branch -d
brD = branch -D
brname = rev-parse --abbrev-ref @
ci = commit
cia = commit -avv
cim = commit -m
cin = commit -n
civ = commit -vv
cl = clone --depth 1
co = checkout
cob = checkout -b
com = "!f(){ git checkout $(git main) $@; }; f"
diffs = diff --staged
hash = rev-parse @
hashs = rev-parse --short @
l = log --oneline
lg = log --oneline --graph
main = !git symbolic-ref refs/remotes/origin/HEAD | cut -d'/' -f4
pullf = !git fetch && git reset --hard @{u}
pullr = pull --rebase origin master
pullrm = "!f(){ git pull --rebase origin $(git main); }; f"
pushbr = push --no-verify -u
pushf = push --force-with-lease
pushfn = push --force-with-lease --no-verify
pushn = push --no-verify
rb = rebase
rbi = rebase -i
rbc = rebase --continue
rba = rebase --abort
sm = submodule
smadd = submodule add --depth 1
st = status
temp = commit -nm temp
[gpg]
program = /usr/local/bin/gpg
[hub]
protocol = https
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[init]
defaultBranch = main