-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
36 lines (31 loc) · 1.31 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
[core]
autocrlf = input
editor = vim
whitespace = warn
[user]
name = "Yuri-M-Dias"
email = "yurimathe.yp@gmail.com"
signingkey = DE197A9D3A09177A
# Commit messages template
[commit]
template = /home/yuri/.gitmessage
# Credential cache
[credential]
helper = cache
# Matches local branchName with origin/branchName by default
[push]
default = simple
# Forces GitHub to use my user
[url "https://Yuri-M-Dias@github.com"]
insteadOf = https://github.com
[url "https://Yuri-M-Dias@gitlab.com"]
insteadOf = https://gitlab.com
[alias]
prettyTree = log --pretty=oneline --graph --decorate --all
lg1 = log --graph --abbrev-commit --decorate --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
lg = !"git lg1"
lagp = log --all --graph --pretty=format:'%C(auto)%h%C(auto)%d %s %C(dim white)(%aN, %ar)'
ignore = update-index --assume-unchanged
unignore = update-index --no-assume-unchanged
ignored = !git ls-files -v | grep "^[[:lower:]]"