-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
36 lines (32 loc) · 1.05 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
[user]
name = Sam S
email = [email protected]
[init]
defaultBranch = main
[alias]
lg = log --color --graph --pretty=format:'%C(red)%h%Creset %C(bold blue)<%an>%Creset \t%C(yellow)%d%Creset %s %Cgreen(%cr)' --abbrev=12
ll = log --color --graph --pretty=format:'%C(red)%h%Creset %C(bold blue)<%an>%Creset \t%C(yellow)%d%Creset %s %Cgreen(%cr)' --decorate --numstat
alias = config --get-regexp ^alias\\.
# Get the first matching branch and archive it
done = "!f() { \
branch_name=$(git branch | grep "$1" | grep -v master | head -n1 | cut -c 3-); \
if [ $branch_name != '' ]; then\
echo '== Archiving & Deleting' $branch_name; \
git tag archived/$branch_name $branch_name \
&& git branch -D $branch_name; \
git tag | grep $branch_name && git branch; \
fi;\
}; f"
[url "[email protected]:"]
insteadOf = https://github.com/
[core]
editor = vim
[diff]
tool = default-difftool
[difftool "default-difftool"]
cmd = code --wait --diff $LOCAL $REMOTE
# [mergetool "code"]
# cmd = code -n --wait $MERGED
# trustExitCode = true
[merge]
tool = code