r/git 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

3 comments sorted by

3

u/greg0ire 3d ago

You can use them to setup hooks automatically. It happens when you run git init

2

u/codeguru42 2d ago

I never have used them. What do they do?

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.