I've a quite big archive of git repositories in my development path, and many of them contains branches or stashes that I may have not published around.
However I want to be sure that for no reason I end up deleting a folder and it's .git folder, while I indeed want to be able to write on it.
So wondering if there's such way to achieve this.
Basically here it is:
repo
├── .git
│ ├── config
│ ├── index
. .
. .
. .
I would love to protect .git
from removal when doing rm -rf repo
, but ensure that I can still access in read-write mode to both the .git/config
file (and friends) and be able to write a new file to .git/
itself.
Is there any way? I tried few hacks so far but none gave me such thing. Maybe using mounts could help with it more, but I would like to keep it stored all in the same place.