-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitconfig
64 lines (50 loc) · 1.05 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
[core]
editor = vim
[alias]
# work with remotes
fa = fetch --prune --all
pr = pull --rebase
ro = !"git remote set-url --push $1 DISABLED #"
# work with branches
b = branch
ba = branch -a
bd = branch -D
c = checkout
cb = checkout -b
ch = checkout origin/HEAD
ct = checkout -t
c- = checkout @{-1}
topic = checkout --no-track origin/HEAD -b
# work with commits
cp = cherry-pick
ri = rebase --interactive
rh = rebase --interactive origin/HEAD
# work with logs
l = log
lo = log --oneline
lf = log --pretty=fuller
fixes = show -s --pretty='format:Fixes: %h (\"%s\")'
me = config sendemail.from
alias = !"git config --get-regexp '^alias.'"
[credential]
helper = store
[init]
defaultBranch = main
[http]
cookiefile = ~/.config/git/cookies.txt
[pull]
ff = only
[push]
default = simple
[sendemail]
sendmailcmd = msmtp
chainReplyTo = no
suppressFrom = yes
confirm = always
[user]
name = Chia-I Wu
email = [email protected]
[advice]
detachedHead = false
[url "https://gitlab.freedesktop.org/"]
insteadOf = [email protected]: