Git svn does not use the svn credentials

前端 未结 1 1357
猫巷女王i
猫巷女王i 2021-01-13 13:45

I try to clone a path from our svn repository. The repository is secured with passwords.

I have found some subversion directories on my Windows 10 System and created

1条回答
  •  爱一瞬间的悲伤
    2021-01-13 14:12

    The reason why git-svn does not use SVN is that it use the credentials stored at C:\Users\XXXX.subversion, which is created by git-svn but not SVN. In my case, Error from SVN, (220001): Item is not readable: Item is not readable also occur.

    The solution is to move the credentials from SVN to git-svn:

    1. Use SVN to check out from server. Remember to save auth. This can create credentials for SVN. The files are stored at C:\Users\XXXXX\AppData\Roaming\Subversion.
    2. Remove the .subversion folder which is under user directory C:\Users\XXXXX if it exists. And then copy the C:\Users\XXXXX\AppData\Roaming\Subversion folder to C:\Users\XXXXX.
    3. Then rename it to .subversion. Since the name starts with a ".", you may need to rename it in cmd console with "rename" command.
    4. Finally, you can use git-svn clone.

    0 讨论(0)
提交回复
热议问题