nighty@lemmy.mltoLinux@lemmy.ml•Can I remove a git repo without resorting to `rm -rf` ?
0·
5 months agoMaybe you can create a bash function (and add it to your bash config files) that only executes the rm -rf
command we have a .git
file around?
function git-rm {
if [ -d "$1" ] && [ -d "$1/.git" ]
then
rm -rf $1;
fi
}
That would be something, wouldn’t it?