-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
48 lines (41 loc) · 946 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[init]
defaultBranch = main
[apply]
whitespace = fix
[core]
editor = vim
pager = less -FRSX
fsmonitor = true
untrackedcache = true
[color]
branch = auto
diff = auto
interactive = auto
pager = true
status = auto
ui = true
[color "status"]
added = green
changed = yellow
untracked = red
[push]
default = current
autoSetupRemote = true
[includeIf "gitdir:~/dev/personal/"]
path = ~/.gitconfig-personal
[includeIf "gitdir:~/dev/work/"]
path = ~/.gitconfig-work
[alias]
p = pull
c = clone --recursive
pu = push
ca = !git add -A && git commit -av
co = checkout
go = "!f() { git checkout -b \"$1\" 2> /dev/null || git checkout \"$1\"; }; f"
s = status -s
tags = tag -l
branches = branch -a
remotes = remote -v
l = log --graph --pretty=format:'%C(yellow)%h%C(auto)%d%Creset %s %C(white)- %an, %ar%Creset'
clean = fetch --prune origin
whoami = !git config --global user.name && git config --global user.email