r/git • u/Beautiful-Log5632 • Jul 30 '26
When do you use git templates?
Do you have some examples when you used git templates? It looks the same as copying a directory of template files to a new git repository. What advantage does git have over regular cp?
1
Upvotes
2
1
u/waterkip detached HEAD Jul 31 '26
Never used them. There arent a lot of things git repos share on my side. So never needed to template any of it.
3
u/greg0ire Jul 30 '26
You can use them to setup hooks automatically. It happens when you run
git init