Alternative to .gitkeep #15
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
A
.gitkeep
file is regularly used to maintain an empty directory within a git repository (because git doesn't like empty directories).Rather than hijack an already unofficial file, I propose to use a
.tmplkeep
file.Notably, this will produce the same effect in source control (a virtually empty directory), however when
tmpl
executes the template,.tmplkeep
files will not be created.This allows templates to set up directory structures where some directories may start out empty (staging, example structure, etc.)