-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitconfig
26 lines (24 loc) · 989 Bytes
/
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
[core]
ignorecase = false
editor = vim
excludesfile = ~/.gitignore
[user]
name = Detmud
email = [email protected]
signingkey = E7B689FF
[push]
default = simple
[alias]
# View abbreviated SHA, description, and history graph of the latest 20 commits
l = log --pretty=oneline -n 20 --graph --abbrev-commit
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
# View the current working tree status using the short format
s = status -s
sa = stage --all .
# Commit always with -S
commit = commit -S
[mergetool]
keepBackup = true
[credential]
helper = cache --timeout=6048000