DEV Community


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

emgodev profile image
Michael • Edited

Why not write a custom bash command?


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.

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.