-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_git.aliases
39 lines (32 loc) · 1.28 KB
/
dot_git.aliases
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
[alias]
b = branch -vva
br = branch -vv
co = checkout
s = status -s
sm = submodule
l = log -n 25 --graph --abbrev=3
la = log --all --abbrev=3
lg = log --graph --abbrev=3
lga = log --graph --all --abbrev=3
ll = log --abbrev=3 --pretty=medium
lc = log --pretty=medium --show-signature
ls = ls-files
lsc = diff --cached --name-only --diff-filter=ARMTC --relative
lsf = "!f() { git diff-tree --no-commit-id --name-only -r ${1:-HEAD}; }; f"
lsm = ls-files -m
lsu = diff --name-only --diff-filter=U --relative
un = ls-files -o --exclude-standard
d = "!f() { git diff-index --quiet HEAD -- ; git diff --patch-with-stat; }; f"
dc = diff --cached --patch-with-stat -w
dw = "!f() { git diff-index --quiet HEAD -- ; git diff --word-diff=color --patch-with-stat; }; f"
sh = "!f() { git show --pretty=medium --minimal -w ${1:-HEAD}; }; f"
f = "!f() { git fetch --all --tags --prune; }; f"
amend = commit --amend --reuse-message=HEAD
authors = shortlog -senc
branches = branch -a
contributors = shortlog -senc
ignored = !git ls-files -v | grep "^[[:lower:]]"
remotes = remote -v
tags = tag -l
push-all = "!f() { for remote in $(git remote); do git push $remote; done; }; f"
# vi:se ai noet ts=4 sw=4 ft=gitconfig: