-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig.safe
25 lines (25 loc) · 1.09 KB
/
.gitconfig.safe
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
[user]
name = Michael Nielson
email = [email protected]
[color]
ui = true
[url "git+ssh://[email protected]/project/"]
insteadOf = dm:
[alias]
s = status
a = add -p
ds = diff --staged
chp = checkout -p
cm = commit -m
pl = pull --ff-only
# remote & local graph change to red, abbrev SHA - yellow refname subject green committer date, ISO 8601 format boldblue authorname
lg = log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ci) %C(bold blue)<%an>%Creset' --abbrev-commit
# authorname relative commit date
lgs = log --graph --pretty=format:'%Cred%h%Creset - %C(yellow)%an%Creset - %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
lgm = log --all --graph --pretty=format:'%Cred%h%Creset - %C(yellow)%an%Creset - %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative --author [email protected]
patch = format-patch --stdout HEAD~1
rpatch = reset --hard HEAD~1
[branch]
; autosetuprebase = always
[push]
default = matching