9

In the process of converting a Subversion repository to git, you might encounter the following error while converting svn:ignore settings to .gitignore:

config --get svn-remote.svn.fetch :refs/remotes/git-svn$: command returned error: 1

How do I resolve this error?

11

To resolve this error, specify the GIT_SVN_ID refname you want to fetch information from. Like:

git svn show-ignore -i trunk > .gitignore
  • 1
    Try this git svn show-ignore -i origin/trunk > .gitignore if above not works. – Abdurrahman I. Mar 19 at 7:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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