I have pulled a repository using TortoiseSVN. In it are .svn folders in the root and all subfolders. I have created a github repository and pushed whole repository.
The problem is that in my local copy I have deleted the .svn folders from repo and then commited the changes. It doesn’t remove the folder from previous versions of repository…
I know how to remove sensitive data from github repo from here:
http://help.github.com/remove-sensitive-data/
But if I use this I have to follow this procedure more than 10 time (and it’s such a waste of time to do that) … so I was wondering that anyone can tell me how to delete all .svn folders from the whole repo in a single go?
I needed to do this recently and I just ran the following command from my root directory of my repo:
This searches recursively for all occurrences of the .svn folder and removes it and its contents recursively. the
--ignore-unmatchparameter prevents git from choking if it does not find the specified file in the repository.The next thing to do, of course, is to add .svn to your .gitnore so that you don’t mistakenly start tracking those files ever again.