-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig
44 lines (44 loc) · 1.17 KB
/
dot_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
[user]
email = [email protected]
name = Vladislav Ponomarev
siginingKey = E8E136A2C8865C488DB0B5CBBCE113E227780CF7
[github]
user = Mayurifag
[alias]
co = checkout
st = status
lg = log --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%an%Creset' --abbrev-commit
# https://stackoverflow.com/a/48999882/8303979
amend-to = "!f() { SHA=`git rev-parse \"$1\"`; git stash -k && git commit --fixup \"$SHA\" && GIT_SEQUENCE_EDITOR=true git rebase --interactive --autosquash \"$SHA^\" && git stash pop; }; f"
recent = branch --sort=-committerdate --format=\"%(committerdate:relative)%09%(refname:short)\"
[core]
autocrlf = input
editor = vi
attributesfile = /Users/mayurifag/.gitattributes
[credential]
helper = cache --timeout=3600
[color]
ui = auto
[merge]
conflictstyle = diff3
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[gui]
pruneDuringFetch = true
[ssh]
variant = ssh
[init]
defaultBranch = main
[includeIf "gitdir:~/Work/"]
path = .gitconfig.work