-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
53 lines (43 loc) · 1.23 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
48
49
50
51
52
53
# -*- mode: conf-unix; indent-tabs-mode: t -*-
[user]
name = hrls
email = [email protected]
[core]
excludesfile = ~/.gitignore
autocrlf = input
[alias]
f = fetch --all --multiple
fa = fetch --all --tags
p = pull --ff-only
b = branch
bc = checkout -b
br = branch --remote
c = commit
co = checkout
com = checkout MERGE_HEAD
df = diff
dfs = diff --staged
r = rebase
ri = rebase --interactive
rc = rebase --continue
s = status --show-stash
ss = show --diff-merges=on
sl = stash list
sub = submodule
url = remote get-url --all origin
append = commit --amend --no-edit
brd = !sh -c 'git push $1 --delete $2' # g brd origin unused
brm = !sh -c 'git branch --list --merged | grep --invert-match $(git branch --show-current) | xargs git branch --delete'
l = !sh -c 'git log --oneline --reverse --max-count=$(($(tput lines) / 2))' # limit output by half of term lines
ll = log --reverse --pretty=tformat:'%C(reset)%C(yellow)%h%C(reset) - %C(blue)%an%C(reset): %s %C(dim)(%ar)%C(reset)' # TODO: %d ref name
[push]
default = current
[pull]
ff = only
[color]
ui = auto
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true