10

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.

joenpc npcsolution
  • 737
  • 4
  • 11
  • 25

4 Answers4

32

I think you can delete .git folder.

Marcin Orlowski
  • 72,056
  • 11
  • 123
  • 141
ramin ashrafimanesh
  • 1,002
  • 10
  • 13
9

Try with below command

sudo rm -rf .git

then

git init
Raj Gohel
  • 999
  • 7
  • 14
7

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

Abass Tope
  • 71
  • 1
  • 1
0

In Git Bash (Windows)

rm -rf .git

to remove .git folder.

Monirul Islam
  • 178
  • 1
  • 9