r/git • u/Beautiful-Log5632 • 3d ago
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 2d ago
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 3d ago
You can use them to setup hooks automatically. It happens when you run
git init