-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy path.gitconfig-for-nix
More file actions
58 lines (58 loc) · 1.27 KB
/
.gitconfig-for-nix
File metadata and controls
58 lines (58 loc) · 1.27 KB
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
[core]
autocrlf = input
safecrlf = false
[diff]
tool = vscode
guitool = vscode
[difftool "vscode"]
path = code
cmd = code --wait --diff $LOCAL $REMOTE
[merge]
tool = vscode
[mergetool]
keepbackup = false
[mergetool "vscode"]
path = code
cmd = code --wait $MERGED
[rebase]
autostash = false
[fetch]
prune = false
[push]
autoSetupRemote = false
[pull]
ff = only
rebase = false
[credential]
helper = manager
[alias]
configure = config --global -e
aliases = !git config -l | grep alias
cleanup = clean -xdf
cm = commit -m
call = !git add --all && git commit
calm = !git add --all && git commit -m
amend = git commit --amend --no-edit
st = status -sb
gr = log --graph
gra = log --graph --all
graph = log --graph --oneline --decorate --all
grr = log --graph --all --reflog
br = branch -vv --sort=-committerdate --list
co = checkout
cob = checkout -b
sw = switch
swc = switch -c
back = checkout -
undo = reset --soft HEAD^
forget = reset --hard HEAD^
restart = reset --hard @{u}
merc = merge --no-ff
ff = merge --ff-only FETCH_HEAD
autorebase = rebase --autostash
rr = rebase --autostash FETCH_HEAD
pushup = push -u origin HEAD
please = push --force-with-lease
puff = pull --ff-only
purr = pull --rebase --autostash
sync = !git pull --rebase --autostash && git push