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 8900311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:04:32+00:00 2026-06-15T01:04:32+00:00

I need to associate a clean unversioned code to an existing git remote repository.

  • 0

I need to associate a clean unversioned code to an existing git remote repository.

I explain better my situation.
My project is moved from svn to git. I have a svn local working copy with old code (nothing new to commit) that has to be syncronized with the new git repository. I could clone the repo but I should restore many ignored configuration files by hand and I would avoid it.

So I removed all .svn directories and I would track my code with the git remote repository.

Is there a way to do it?

  • 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-06-15T01:04:33+00:00Added an answer on June 15, 2026 at 1:04 am

    Ok,
    I post the right answer for my question based on Adam Dymitruk and Eugene Sajine answers. Thanks everyone for the support 🙂

    • First of all, remove all .svn directories in working copy directory;
    • initialize new git repository in the working copy directory

      cd /path/to/my/project
      git init
      
    • add git remote repository and fetch it

      git remote add origin url-to-your-remote
      git fetch origin
      
    • reset working copy to remote repository

      git reset --hard origin/master
      

    At the end local repository will be synchronized with remote repository.

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

Sidebar

Related Questions

I need to associate two models with a simple has_many. The problem is that
I'm writing an app where I need to associate data with user pairs. For
I have several pieces of metadata that I need to associate with a push
I'm working on a page where I need to associate a list of objects
I need to simplify this xml ( to a list ), and associate the
I need to ship some Java code that has an associated set of data.
I have the need to do some logging within my code. I'm required to
I need to write a hibernate criteria for this SQL: select distinct USER_ID from
I have a need to move ~10,000 files from one document library to another
I need to know which physical column is associated to a persistent's attribute. e.g.

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.