I initialized a git repo while I was still at the desktop directory before creating a folder for my workspace, all files and folders on the desktop are now tracked and I can’t figure out how to delete this. Whenever i try creating a new folder for my workspace on the desktop, the main branch is shown
>Solution :
Simply move git folder to another location, some directory. To do so, find hidden .git folder on desktop, and move it with files which you’d like to track to separate repository. For Windows you could see hidden files like this – https://support.microsoft.com/en-us/windows/show-hidden-files-0320fe58-0117-fd59-6851-9b7f9840fdb2.
Then commit changes, because git will consider missing files as deleted. And you will have clean repository.