-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig##class.Work
37 lines (37 loc) · 1.25 KB
/
.gitconfig##class.Work
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
# This is Git's per-user configuration file.
[user]
name = Peter Lukacs
email = [email protected]
[alias]
co = checkout
st = status
# commit added files with message
cm = !git commit -m
# add tracked files and commit them with message
cmu = !git add -u && git commit -m
# add all (tracked/untracked) files and commit them with message
cma = !git add -A && git commit -m
# amend added files into the last commit with the same message
ca = !git commit --amend --no-edit
# add tracked files and amend it into the last commit with the same message
cau = !git add -u && git commit --amend --no-edit
# add all (tracked/untracked) files and amend it into the last commit with the same message
caa = !git add -A && git commit --amend --no-edit
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
com = !git checkout master
[core]
editor = code --wait
[pull]
rebase = false
[merge]
tool = vscode
[mergetool "vscode"]
cmd = code --wait $MERGED
[diff]
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[init]
defaultBranch = main
[push]
autoSetupRemote = true