Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6243255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:06:20+00:00 2026-05-24T12:06:20+00:00

I have pulled a repository using TortoiseSVN. In it are .svn folders in the

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T12:06:20+00:00Added an answer on May 24, 2026 at 12:06 pm

    I needed to do this recently and I just ran the following command from my root directory of my repo:

     find . -name '.svn' | xargs git rm -rf --ignore-unmatch
    

    This searches recursively for all occurrences of the .svn folder and removes it and its contents recursively. the --ignore-unmatch parameter 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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have pulled git repository form github in my user folder and all files
I have an SVN repository which contains a number of loosely-related subfolders in its
I have pulled an incoming changes from a codeplex-based mercurial repository and have arrived
The system of record is an SVN repository, but for whatever reasons, I've pulled
I have a web server which is using mercurial as the repository. Every day,
I have pulled last uploaded image using following code class categoryForm(forms.Form): name = forms.CharField(widget=forms.TextInput(attrs={'class':'box'}),max_length=32,label='Category',required=True)
So I have a git repository that i pulled at one point and that
I have an issue with a new remote repository that when cloned using Tower,
I'm using an svn-ish git workflow. Me and a couple developers all communicate though
I want to squash some local commits using rebase -i but I have pulled

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.