-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
47 lines (37 loc) · 1.24 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
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red
new = green
[format]
pretty = format:%C(blue)%ad%Creset %C(yellow)%h%C(green)%d%Creset %C(blue)%s %C(magenta) [%an]%Creset
[core]
editor = vim
excludesfile = ~/.gitignore
attributesfile = ~/.gitattributes
[init]
defaultBranch = main
[alias]
diffcache = diff --cached
outgoing = log --graph @{u}..
# Pretty git branch graphs from http://stackoverflow.com/a/9074343/2619847
glogall = 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
glog = !"git glogall -7"
# Show all unpushed branches from https://stackoverflow.com/a/48180899
unpushed = log --branches --not --remotes --no-walk --decorate --oneline
# Get the latest (local) tag from https://stackoverflow.com/a/4277828
# latest_tag = "git describe --tags $(git rev-list --tags --max-count=1)"
[push]
default = current
autoSetupRemote = true
[pager]
status = true
# Keep my email address out of the public repo
[include]
path = ~/.gitconfig.private