forked from rammounts/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
55 lines (54 loc) · 1.99 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
[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 = *
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:https://*@bitbucket.org/rammounts/**"]
path = ~/.dotfiles/.gitconfig-professional
[includeIf "hasconfig:remote.*.url:[email protected]:rammounts/**"]
path = ~/.dotfiles/.gitconfig-professional
[credential]
helper = "!f() { /home/csl/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/node /tmp/vscode-remote-containers-9e61c8b2-54af-4e30-8fbb-61d6ce82cdf7.js git-credential-helper $*; }; f"