I have cloned a "dotfiles" Git repository into my home directory and I'm trying to remove all the files associated with it.
How can I safely remove all files that belong to the repository without accidentally deleting any other files from my home directory?
You can use
git ls-filesto list the repository files and to pipe the output tormAfter that delete the
.gitfolder