-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
83 lines (63 loc) · 1.68 KB
/
.gitconfig
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
79
80
81
82
83
[user]
name = Yasmin Teles
email = [email protected]
[url "[email protected]:"]
insteadOf = https://github.com/
[credential]
helper = cache
[alias]
# Log Graph
la = "log --graph --all --pretty=format:'%C(magenta)%h %C(auto)%d%Creset %s - %C(bold blue)%an%Creset %C(cyan)%cr%Creset'"
# la = log --oneline --graph --all
# Commits
st = status
cf = commit --fixup
cm = commit -m
ca = commit -am
cnm = commit --amend --no-edit
# Files
sf = show --name-only
df = diff
ignore = !sh -c '!gi() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ ;}; gi'
# Remote
rup = !sh -c 'git remote update -p && git upm && git la' -
fat = "fetch --all --tags"
# Branchs
cc = checkout
mff = merge --ff-only
del = !sh -c 'git branch -D $1 && git push origin :$1' -
new = !sh -c 'git checkout -b $1 && git push origin $1' -
psh = !sh -c 'git push origin $(git branch --show-current) $1 && git la' -
bls = branch -vva
dt = !sh -c 'git tag -d $1 && git push origin :$1' -
# Remove branches that have already been merged with main.
# a.k.a. ‘delete branch merged’
dbm = "!git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"
up = !sh -c 'git fetch origin $1:$1' -
upm = fetch origin main:main
unstage = reset HEAD --
rollback = reset --soft HEAD~1
undo = checkout --
ready = rebase -i @{u}
[rebase]
autosquash = true
[fetch]
prune = true
[core]
pager = "delta --width 150 | less -RFX"
excludesFile = ~/.gitignore
autocrlf = false
[commit]
template = ~/.gitmessage
[interactive]
diffFilter = delta --color-only
[init]
defaultBranch = main
[delta]
navigate = true
side-by-side = true
tabs = 2
[merge]
conflictstyle = diff3
[diff]
colorMoved = default