Does Git-Svn Store Svn Passwords?

后端 未结 6 1568
醉梦人生
醉梦人生 2020-12-08 04:48

I\'m using git-svn with a couple of work projects and I\'ve noticed that for just about every action I take, I get prompted for my Svn password. For some actions, I get prom

6条回答
  •  臣服心动
    2020-12-08 05:05

    I had a similar issue. Initially I was on a remote centos server trying to grab all remote svn branches to push them to a clean origin as true git branches for a hard cutover from svn to git via:

    for remote in `git branch -r` ; do git checkout $remote; git pull; done
    

    where there were ~240-ish remote branches. (There was no way I was going to put my password in for each of these pulls)

    What I ended up doing was scp'ing the repo down to my local machine (a mac) and enabling keychain to handle the password caching. I pulled all the svn commits local and then copied my repo back to the remote machine.

提交回复
热议问题