I accidentally made my Desktop a git repository. How to remove the git-related files from Desktop?
Display the hidden folders: $ ls -alh . Remove the .git folder: $ rm -R .git
$ ls -alh
$ rm -R .git