Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How do i delete a main branch?

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 :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading