-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
58 lines (58 loc) · 1.56 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
55
56
57
58
[user]
name = Delong Fu
email = [email protected]
[core]
editor = vim
autocrlf = input
ignorecase = true
precomposeunicode = true
excludesfile = /Users/delongfu/.gitignore_global
sparseCheckout = true
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%Creset' --abbrev-commit
ls = !git ls-files -m | xargs
cm = commit -m
po = push origin
amend = commit --amend --no-edit
sync = !git fetch origin $1:$1
forget = update-index --skip-worktree
unforget = update-index --no-skip-worktree
cp = cherry-pick
root = rev-parse --show-toplevel
ss= !git commit --message "WIP" && git stash -u && git reset --soft HEAD^
rename = !export old_branch=":$(git rev-parse --abbrev-ref HEAD)" && git branch -m $1 && git push -f origin $old_branch
close = !export tobedeleted=`git branch --show-current` && git sync master && git checkout master && git branch -D $tobedeleted && git prune && git fetch --prune
pr = !open https://github.com/figma/figma/compare/`git rev-parse --abbrev-ref HEAD`?expand=1
dc = diff --cached
[color]
status = auto
ui = true
[color "status"]
changed = red
untracked = normal
added = magenta
[color "diff"]
old = red
new = magenta
[push]
default = current
autoSetupRemote = true
[init]
templatedir = ~/.git-templates
[rerere]
enabled = true
[hub]
host = git.musta.ch
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[protocol]
version = 2
[feature]
manyFiles = true
[pull]
rebase = false
[credential]
helper = store