code logs -> 2024 -> Fri, 25 Oct 2024< code.20241024.log - code.20241026.log >
--- Log opened Fri Oct 25 00:00:26 2024
00:25 celticminstrel [celticminst@Nightstar-0na0fn.cpe.pppoe.ca] has joined #code
00:25 mode/#code [+o celticminstrel] by ChanServ
02:18 Alek [Alek@Nightstar-e1815p.il.comcast.net] has quit [[NS] Quit: ]
02:34 Alek [Alek@Nightstar-e1815p.il.comcast.net] has joined #code
02:39 Vornicus [Vorn@Nightstar-8k6f0b.res.spectrum.com] has quit [Connection closed]
03:44 Degi [Degi@Nightstar-5gp.snm.11.77.IP] has quit [Ping timeout: 121 seconds]
03:45 Degi [Degi@Nightstar-vm1.egv.11.77.IP] has joined #code
05:17 ToxicFrog` [ToxicFrog@ServerAdministrator.Nightstar.Net] has joined #code
05:20 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
14:44 Vornicus [Vorn@Nightstar-8k6f0b.res.spectrum.com] has joined #code
14:44 mode/#code [+qo Vornicus Vornicus] by ChanServ
15:16 ToxicFrog` is now known as ToxicFrog
15:17 mode/#code [+ao ToxicFrog ToxicFrog] by ChanServ
16:17 Vornicus [Vorn@Nightstar-8k6f0b.res.spectrum.com] has quit [Connection closed]
17:19 Degi [Degi@Nightstar-vm1.egv.11.77.IP] has quit [[NS] Quit: ZNC 1.8.2+deb2build5 - https://znc.in]
17:21 Degi [Degi@Nightstar-vm1.egv.11.77.IP] has joined #code
19:28
< sshine>
I want to guard against `git push` without explicitly having run `git config user.<name/email>` on every project.
19:28
< sshine>
Does anyone know how to override `git push` system-wide but rename it to something so I can do it under-the-hood?
19:28
< sshine>
I know there is a `~/.gitconfig` that allows for multiple sub-configs using `[includeIf "gitdir:..."]`, but the `includeIf` logic is not extensible enough.
19:29
< sshine>
E.g. if I have `~/Projects/employer-a/repo-{a,b,c}`, then `includeDir` cannot say "any git repo in the sub-directory `~/Projects/employer-a`".
19:29
< sshine>
And if I clone a repo on a machine belonging to one context that wasn't previously boot-strapped there, I might accidentally use the git user/email that is the default there.
19:30
< sshine>
I'd much rather never accidentally `git push` without first having `git config`'ed, either for a particular git dir, or for a sub-directory recursively.
19:30
< sshine>
maybe I could achieve this with a system-wide git hook
19:31
< sshine>
ah yes. there is a git setting, core.hooksPath
19:33
< sshine>
actually, it's more `git commit` that needs this.
19:50 Vornicus [Vorn@Nightstar-8k6f0b.res.spectrum.com] has joined #code
19:50 mode/#code [+qo Vornicus Vornicus] by ChanServ
23:22 Vornicus [Vorn@Nightstar-8k6f0b.res.spectrum.com] has quit [Connection closed]
--- Log closed Sat Oct 26 00:00:28 2024
code logs -> 2024 -> Fri, 25 Oct 2024< code.20241024.log - code.20241026.log >

[ Latest log file ]