-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitconfig
61 lines (53 loc) · 1.29 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
[user]
name = Doğan Çeçen
email = [email protected]
[diff "scheme"]
xfuncname = "^(\\(define.*)$"
[diff "texinfo"]
xfuncname = "^@node[[:space:]]+([^,]+).*$"
[format]
forceinbodyfrom = true # help preserve commit authorship
thread = shallow
useAutoBase = true
[sendemail]
thread = no
smtpEncryption = tls
smtpServer = smtp.gmail.com
smtpUser = [email protected]
smtpServerPort = 587
[color]
ui = yes
pager = yes
[core]
pager = less
[push]
default = simple
[alias]
lo = log --oneline --decorate
st = status --short --branch
ci = commit
lb = for-each-ref refs/heads --count=10 --format='%(refname:short)' --sort=-committerdate
co = checkout
sw = switch
unstage = reset HEAD --
last = log -1 HEAD
staged = diff --cached
please = push --force-with-lease
edit = commit --amend
amend = commit --amend --no-edit
it = !git init && git commit -m root --allow-empty
stsh = stash --keep-index
staash = stash --include-untracked
staaash = stash --all
merc = merge --no-ff
sy = !legit sync
sync = !legit sync
pub = !legit publish
publish = !legit publish
unp = !legit unpublish
unpublish = !legit unpublish
un = !legit undo
undo = !legit undo
br = !legit branches
branches = !legit branches
bb = "!f() { git checkout -b \"backup-$(date +'%Y%m%d_%H%M')\"; git checkout -; }; f"