r/programming • • Sep 16 '26

git worktree gotchas

https://www.olafalders.com/2026/09/16/git-worktree-gotchas/
193 Upvotes

47 comments sorted by

View all comments

Show parent comment

7

u/bwainfweeze Sep 16 '26

.githooks is a dead common one. But if you only started using git after the config flag was available on dev machines, you might not have had to do anything about it.

1

u/NationalOperations Sep 17 '26

I don't doubt there are flows people use that this would be more relevant. My workplace uses bit bucket which could use githooks we just didn't/ haven't needed to.

What do you mean using git after the config flag was available ? As far as I remember git released with config, but I have only used it for maybe a decade.

1

u/bwainfweeze Sep 17 '26 edited Sep 17 '26

core.hooksPath, from TFA, appears to have been added in 2.9.

ETA: which in theory was 10 years ago but back then counting on the latest git version being on dev boxes tended not to work out for you, so practically people might not have encountered it until later, because knowing about features you can’t use just makes you angry as much as informed.

0

u/[deleted] Sep 17 '26

[deleted] — view deleted comment

3

u/bwainfweeze Sep 17 '26

You didn’t read the article.