stkvtflw stkvtflw - 1 month ago 17
Git Question

Remove git repo

Accidentally I've created some files in

/dev/projectname/projectname


I've initiated git repo
git remote add origin git@bitbucket...


then i did this from
/dev
:

mv projectname projectname_d
mv projectname_d/projectname projectname
rm -rf projectname_d


Then i've found out, that repo is located in
/dev
somehow, so if i run
git status
it lists all folders in
/dev


How do i fix this?

Answer

Try rm -r .git from the repo root