forked from legion0/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitconfig
55 lines (54 loc) · 2.3 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
54
#[user]
# email = [email protected]
# name = username
[color]
status = auto
diff = auto
branch = auto
interactive = auto
[core]
eol = lf
pager = less -x4
[alias]
co = checkout
ci = commit
st = status
del = !sh -c 'git branch -D $1 && git push origin :$1' -
br = !git for-each-ref --sort=-committerdate refs/heads --format='%(HEAD)%(color:yellow)%(refname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject) %(color:bold green)- %(color:magenta)%(authorname)%(color:reset)' --color=always|column -ts'|'
fe = fetch
cp = cherry-pick
ls = log --pretty=oneline --abbrev-commit --graph --decorate
lsa = log --all --pretty=oneline --abbrev-commit --graph --decorate
la = log --format=format:'%C(bold blue)%h%C(reset) %C(bold cyan)%ai%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)[%an]%C(reset)' --graph
lc = log --format=format:'%C(bold blue)%h%C(reset) %C(bold cyan)%ci%C(reset) %C(bold green)(%cr)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)[%cn]%C(reset)' --graph
ll = log --format=format:'%C(bold blue)%h%C(reset) %C(bold cyan)%ai%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset) %C(white)%s%C(reset) %C(bold white)[%an]%C(reset)' -M --graph --name-status
del = !sh -c 'git branch -D $1 && git push origin :$1' -
ignore = !git update-index --assume-unchanged
unignore = !git update-index --no-assume-unchanged
ignored = !git ls-files -v | grep ^[a-z]
fetch-all = "!for remote in $(git branch -r); do git branch --track ${remote#origin/} $remote; done"
diff-staged = diff --staged -M
diff-last = diff --cached -M HEAD~
diff = diff -M
aliases = "!git config -l | grep alias | cut -c 7-" # Magic :)
serve = !git daemon --reuseaddr --verbose --base-path=. --export-all ./.git
catch = !git daemon --reuseaddr --verbose --base-path=. --export-all --enable=receive-pack ./.git
text-files = grep -I --name-only ''
lost = fsck --unreachable --no-reflogs
merge = merge --no-ff
fetch = fetch -p
ignore = update-index --skip-worktree
unignore = update-index --no-skip-worktree
amend = commit --amend --no-edit
[diff]
tool = vimdiff
[merge]
tool = vimdiff
[difftool]
prompt = false
[mergetool]
prompt = false
[push]
default = upstream
[include]
path = .gitconfig_local