-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
58 lines (52 loc) · 1.31 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 = Arun George
# email =
[core]
autocrlf = input
editor = code --wait
safecrlf = false
[color "status"]
changed = red bold
untracked = cyan bold
added = green bold
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
# diff
[diff]
tool = vscode
[difftool]
prompt = true
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
# merge
[merge]
tool = vscode
[mergetool]
prompt = false
[mergetool "vscode"]
cmd = code --wait $MERGED
keepBackup = false
trustExitCode = true
[alias]
aa = add --all
st = status --short -u --branch
br = branch
bd = branch -d
cb = checkout -b
di = diff
unstage = reset HEAD --
last = log -1 HEAD
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
ld = log --pretty=format:"%C(yellow)%h\\ %C(green)%ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short --graph
ls = log --pretty=format:"%C(green)%h\\ %C(yellow)[%ad]%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
lp = log --graph --decorate --pretty=oneline --abbrev-commit
pristine = 'git reset --hard && git clean -dfx'
stl = stash list
stp = stash pop
undo-commit-soft = reset --soft HEAD~1
undo-commit-hard = reset --hard HEAD~1
ru = remote update
fa = fetch --all