forked from ilude/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitconfig
50 lines (49 loc) · 1.66 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
[core]
eol = lf
autocrlf = input
editor = code --wait
symlinks = true
[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
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 = *
[includeIf "hasconfig:remote.*.url:[email protected]:*/**"]
path = ~/.dotfiles/.gitconfig-personal
[includeIf "hasconfig:remote.*.url:[email protected]:rammounts/**"]
path = ~/.dotfiles/.gitconfig-professional
[includeIf "hasconfig:remote.*.url:[email protected]:rammounts/**"]
path = ~/.dotfiles/.gitconfig-professional