-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
64 lines (64 loc) · 1.74 KB
/
gitconfig
File metadata and controls
64 lines (64 loc) · 1.74 KB
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
62
63
64
[user]
name = Ryder
email = ddzero2c@gmail.com
signingkey = ~/.ssh/id_ed25519
[core]
filemode = true
editor = nvim
pager = less -FRX
attributesfile = ~/.gitattributes
autocrlf = input
[alias]
st = status
ci = commit
co = checkout
rb = rebase
cp = cherry-pick
br = branch
df = diff
wt = worktree
pick = cherry-pick
fp = format-patch
ll = log --graph --decorate --pretty=oneline --abbrev-commit --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%ai%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --date=rfc
llm = log --graph --decorate --pretty=oneline --abbrev-commit --all --merges --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%ai%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'
cleanup = "!git branch --merged | grep -v '\\*\\|master\\|develop\\|main' | xargs -n 1 git branch -d"
[init]
defaultBranch = main
[push]
default = simple
[pull]
rebase = true
[merge]
tool = vimdiff
[merge "json"]
name = custom merge driver for json files
driver = git-json-merge %A %O %B
[mergetool]
prompt = false
keepBackup = false
[mergetool "vimdiff"]
cmd = nvim $MERGED
[diff]
tool = vimdiff
[difftool]
prompt = false
[difftool "vimdiff"]
cmd = nvim -d \"$LOCAL\" \"$REMOTE\"
[log]
date = iso
[url "git@github.com:"]
insteadOf = https://github.com
[gpg]
format = ssh
[gpg "ssh"]
allowedSignersFile = ~/.ssh/allowed_signers
[commit]
gpgsign = true
[tag]
gpgsign = true
[credential "https://github.com"]
helper =
helper = !/opt/homebrew/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/opt/homebrew/bin/gh auth git-credential