-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
26 lines (25 loc) · 911 Bytes
/
gitconfig
File metadata and controls
26 lines (25 loc) · 911 Bytes
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
[user]
name = Jay Bendon
email = jaybocc2@gmail.com
[core]
excludesfile = ~/.gitignore_global
[branch]
autosetuprebase = always
[branch "master"]
rebase = true
[fetch]
recurseSubmodules = true
[push]
default = tracking
# [url "git@github.com:"]
# insteadOf = https://github.com/
[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
[includeIf "gitdir:~/repos/work/"]
path = ~/.gitconfig-work
[alias]
syncmain = "!f() { CURRENT_BRANCH=$(git symbolic-ref --short HEAD); if [ \"$CURRENT_BRANCH\" = main ]; then echo 'Error: cannot run syncmain on main branch.' >&2; exit 1; fi; git checkout main && git pull origin main && git checkout \"$CURRENT_BRANCH\" && git rebase origin/main && git push origin \"$CURRENT_BRANCH\" --force-with-lease; }; f"