DEV Community

loading...

Discussion on: Using git to create a template project for repeated use

Collapse
emgodev profile image
Michael • Edited

Why not write a custom bash command?

or

From my understanding git deletes 'headless' branches, so rather than deleting .git/, you can just delete the branches and start a new branch & head. The old ones should just wither away, along with the data. Git man page says after 30 days it deletes that stuff.

Collapse
dechamp profile image
DeChamp Author

So I actually write quite a few bash scripts, enough where I keep a repo of them. I just was really hoping that git, has a native command.