-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgitconfig
More file actions
38 lines (38 loc) · 893 Bytes
/
gitconfig
File metadata and controls
38 lines (38 loc) · 893 Bytes
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
[init]
defaultBranch = master
[color]
ui = auto
[apply]
whitespace = nowarn
[core]
filemode = false
excludesfile = ~/.gitignore
editor = nvim
pager = "diff-so-fancy | less --tabs=4 -RFX"
[push]
default = current
[pull]
default = current
[branch]
autosetuprebase = always
[diff]
ignoreSubmodules = dirty
[alias]
a = add
b = branch
c = commit
d = diff
s = status
st = status
ci = commit
br = branch
co = checkout
cp = cherry-pick
pu = push
pl = pull
df = diff
lg = log -p
who = shortlog -s --
lgp = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
logp = --pretty=format:"%h - %an, %ar : %s"
branches = "! for branch in `git branch -r | grep -v HEAD`; do echo `git show --format=\"%ai %ar by %an\" $branch | head -n 1` \t$branch; done | sort -r"