How to Remove & Delete a Local Git Repository

preview_player
Показать описание
Need to delete a Git repo? Was the local repo to delete created with Git init?

If you are having a problem deleting your local Git repo, we have the solution to your problem. Just run the following command:

rm -fr .git

That command will delete the hidden .git folder in which all of your local Git configuration for the local repository is stored. Once that Git repo delete command is performed, the local git repository will be gone for good.

Another option is to just unhide all hidden directories. That's why the deletion of a Git repo causes people problems - they don't realize the .git folder is hidden. But if you unhide it, you can just do a right-click and delete, and the local Git repo will be removed for good.
Рекомендации по теме
Комментарии
Автор

Thank you so much. I was in tears trying to figure out this problem before I found this video!

walliswilliams
Автор

This is how i suspected it would work but I had to make sure I was doing it right. Thanks for the very clear video explaining everything!

noblessus
Автор

Thank you so much for this ! Spent hours in trying to figure out !

kshitizsinghchauhan
Автор

Thank you Cameron! It was short and sweet, instructive and a touch of humour to mix it all together.

heartcurious_snowman
Автор

Thank you so much for sharing this. I was getting to the stage of tearing my hair out. I'm very new to Linux and this helped immensely.

DefaultFlame
Автор

Thank you! It was saying permission denied and stuff but this helped

umloiro
Автор

Thanks for the information brother Cameron McKenzie.
Karim from Tunisia

KarimGitHub
Автор

Thank you so much, the rm -gr .git was not working in my system for some reason and I was really stressed to delete that repo

prof.mangabhai
Автор

awesome, straight and to the point, thanks for making the video and sharing it!

vizcarraorozco
Автор

thank you very much brother ....take love 🥰

mahibulislamratul
Автор

my first comment. Thank you for your help. I spend 10 h to try to find how to delete this repo.!!!! You best

alexkondaurov
Автор

the video i was looking for! Thank you good sir

knoiohi
Автор

i-it was that easy....Thanks for saving my life sir.

coffeetea
Автор

thank you so much i have problem for four days, you best youtuber

eslammohamed
Автор

I needed this tip for a while! thanks a million

TheGirInWonderland
Автор

Thank youu so much, very helpful tutorial

arhamulfajar
Автор

How do I remove project from a repo that was made in Visual Studio 2022?

christiancarter
Автор

Thank you so much, buddy. It was really helpful for me.

aburaihan
Автор

Thank you very much, it really helps me a lot🥰

duypkthg
Автор

Your the best, this was so helpful thank you :)

judewalker