joenpc npcsolution
joenpc npcsolution

Reputation: 767

How to delete git repository(laravel project) on visual studio code

I have small laravel project that committed to git. Then I successfully deleted a remote repository by manually(Setting -> Delete this repository), it work fine. But once I try to make new repository on vs code, then I got

$ git init
Reinitialized existing Git repository in C:/xampp/htdocs/uploadcanvas/.git/

Actually, this repository already deleted. But I may need to clear some cache/file to create new repository. But I'm do not know how to manage that.

Any advise or guidance would be greatly appreciated, Thanks.

Upvotes: 10

Views: 93067

Answers (4)

Monirul Islam
Monirul Islam

Reputation: 312

In Git Bash (Windows)

rm -rf .git

to remove .git folder.

Upvotes: 0

Raj Gohel
Raj Gohel

Reputation: 1102

Try with below command

sudo rm -rf .git

then

git init

Upvotes: 10

Abass Tope
Abass Tope

Reputation: 71

I think you should delete your .git folder. But unfortunately, .git folder is hidden by default. You can remove it in your settings > Files:Exclude. save your work, save your work. You should see the .git folder now so you can delete it

Upvotes: 7

ramin ashrafimanesh
ramin ashrafimanesh

Reputation: 1062

I think you can delete .git folder.

Upvotes: 33

Related Questions