-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
65 lines (63 loc) · 1.81 KB
/
Copy pathgitconfig
File metadata and controls
65 lines (63 loc) · 1.81 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# -*- mode: conf -*-
[init]
defaultBranch = mainline
[color]
ui = auto
[pull]
ff = only
[push]
default = simple
[core]
abbrev = 12
pager = less -+$LESS -R
[status]
showUntrackedFiles = all
[alias]
b = branch -vv
ba = branch -vv --all
bD = "!f(){ git branch | awk '$1 != \"*\"' | xargs echo g b -D; };f"
bDx = "!f(){ git branch | awk '$1 != \"*\"' | xargs git branch -D; };f"
ca = commit --amend
ch = cherry-pick --edit -s -x
chp = cherry-pick
ci = commit
co = checkout
cot = checkout --track
d = diff
di = diff --cached
ds = diff --stat
h = help
f = fetch --all -v
fx = fetch --all -v --prune
fxx = fetch --all -v --prune-tags
l = log --format=nicer
lg = log --format=nicer --graph
ll = log --pretty=fuller --decorate
ls = log --format=nicer --stat
ls-ign = ls-files . --exclude-standard --others --ignored
ls-unt = ls-files . --exclude-standard --others
ls-tag = ls-remote --tags
pl = pull --rebase --all -v
plx = pull --rebase --all -v --prune
pt = fetch --prune origin '+refs/tags/*:refs/tags/*'
pu = push --dry-run
pwd = !pwd
s = status --short --branch
so = show --pretty=fuller
ss = show --pretty=fuller --stat
su = status --short --branch --untracked-files=no
superx = "!f(){ git clean -dffx && git checkout .;};f" # super dangerous
w = worktree
x = clean -dffx -n
xxx = clean -dffx # dangerous
[advice]
skippedCherryPicks = false
[pretty]
nicer = tformat:%C(auto,red)%h %C(auto,bold blue)%<(20)%an%C(auto,reset) %C(auto,green)%>(15)%cr%C(auto,reset) %C(auto,yellow)%d%C(auto,reset) %s
[commit]
gpgSign = true
#
# keep personal details (user name, email) separately
#
[include]
path = ~/.config/git/personal.conf