I am using Windows 10(64-bit). So I cloned a repository through git-bash in my home directory just for testing but when I have been done with that repo. I decided to delete that directory and successfully deleted but that repo reappeared again and again after some days. How is this possible? So below are the methods I already tried:-

  • First one obviously, right clicked on repo and clicked on "Delete"
  • With cmd:- rmdir /s /q filename
  • In git-bash:- rm -rf filename

So all above methods worked but the strange thing is how it is reappearing and the most strange part is that git repo is not a repo now! Instead it is just a normal folder containing a sub folder named "Pictures" and which in turn contains "Saved Pictures" and "Camera Roll" that contains nothing. This is the current directory structure:-


"ptf" was the name of git repo(Pentester's Framework)

So my question is:- Is anything similar happened to anybody and how to permanently delete that folder?


I'm not a windows user but if the option /r or /s remove recursively dthe subdirectories, you should verify that the .git hidden (in Linux) directory has been also deleted. It's there that git stores all its info and maybe if .git is still present in your directory, you are still seeing the repo.

  • 1
    as I said in my question, now, that folder is not a git repository. – daya Jul 26 '18 at 9:53

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.