forked from traefikturkey/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
61 lines (61 loc) · 1.89 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
59
60
61
[core]
eol = lf
autocrlf = input
editor = code --wait
symlinks = true
[diff]
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[merge]
tool = vscode
[mergetool "vscode"]
cmd = code --wait $MERGED
[advice]
skippedCherryPicks = false
[branch]
autoSetupRebase = always
[fetch]
prune = true
[init]
defaultBranch = main
[pull]
rebase = true
[push]
autoSetupRemote = true
default = current
[submodule]
recurse = true
[alias]
co = checkout
cb = checkout -b
ci = commit -m
ca = !git add -A . && git status -s && git commit -m
cu = commit --amend --no-edit
s = status -s
br = branch
unstage = reset .
rh = reset --hard
db = !sh -c 'git branch -D $1 && git push origin --delete $1' -
dlb = !sh -c 'git branch -D $1' -
drb = !sh -c 'git remote prune origin && git push origin --delete $1' -
aa = !git add -A . && git status -s
pushall = "!git push --all; git push --tags"
ct = !sh -c 'git checkout -b $1 && git push --set-upstream origin $1' -
ls = !git --no-pager log -10 --date=short --pretty='%C(yellow)%h%Creset - %C(yellow)%an%Creset %C(white)%ad%Creset%C(yellow)%d%Creset %Cgreen%s%Creset'
ll = !git log --date=short --pretty='%C(yellow)%h%Creset - %C(yellow)%an%Creset %C(white)%ad%Creset%C(yellow)%d%Creset %Cgreen%s%Creset'
lg = log --graph --abbrev-commit --date=relative --pretty='%C(yellow)%h%Creset - %C(yellow)%an%Creset%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset'
lf = show --pretty=\"format:\" --name-only
wtf = reflog
rs = remote show origin
[safe]
directory = *
[user]
name = mike
email = [email protected]
[includeIf "hasconfig:remote.*.url:https://github.com/traefikturkey/**"]
path = ~/.dotfiles/.gitconfig-personal
[includeIf "hasconfig:remote.*.url:https://github.com/ilude/**"]
path = ~/.dotfiles/.gitconfig-personal
[includeIf "hasconfig:remote.*.url:[email protected]:*/**"]
path = ~/.dotfiles/.gitconfig-personal