1

I have migrated the SVN repository to a local Git repository by using following git svn clone command

git svn clone <svn-repo>/<project> <git-repo-name>

Now I want to synchronize the new local Git repository when the SVN repository changes(new commit). I used following command to fetch any new commits from the original SVN repository:

git svn fetch

But nothing is fetched after executing above command. It displays as :

$ git svn fetch

Instaed it shows as :

$ git svn fetch
fatal: Not a git repository (or any of the parent directories): .git
Unable to find .git directory
at D:\Program Files\Git\mingw64/libexec/git-core\git-svn line 347.

1 Answer 1

3

I think you need to change directory into the root of the git repo. The clone operation will have created a sub-folder from within your current folder which contains the new git repository. cd into this folder and then try the svn fetch operation.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.