Skip to content

Commit d892ee4

Browse files
committed
🗄 chore: Update gitconfig
1 parent 3cd4222 commit d892ee4

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

git/.gitconfig

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# https://git-scm.com/docs/git-config
2+
3+
# https://blog.gitbutler.com/git-tips-2-new-stuff-in-git#some-git-branch-stuff
24
[branch]
35
sort = -committerdate
46

@@ -83,9 +85,12 @@ lineNumber = true
8385
autocorrect = prompt
8486

8587
[include]
86-
path = "~/.gitconfig-custom" # include the user block
88+
path = "~/.gitconfig-custom" # include other customizations
8789
path = "~/.gitalias"
8890

91+
[includeIf "hasconfig:remote.*.url:https://github.com/**"]
92+
path = "~/github-tomy0000000.gitconfig" # include the user block
93+
8994
[init]
9095
# https://github.blog/changelog/2020-10-01-the-default-branch-for-newly-created-repositories-is-now-main/
9196
defaultBranch = "main"

git/github-tomy0000000.gitconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[user]
2+
name = "Tomy Hsieh"
3+
email = "git@tomy.me"
4+
signingkey = "6067E1A85CE97701A70403FA4E6AF0EEDD2205F8"
5+
6+
[commit]
7+
gpgsign = true
8+
9+
[gpg]
10+
program = /usr/local/MacGPG2/bin/gpg

0 commit comments

Comments
 (0)