我使用git svn clone
. 那时,我在那个站点没有用户名,因此没有--username
使用clone
. 因为我现在可以使用我的新用户名提交到 SVN 存储库,所以我想添加该用户名。没有它,dcommit
就会失败:
% LANG=C git svn dcommit
Committing to <THE URL> ...
RA layer request failed: Server sent unexpected return value (405 Method Not Allowed) in response to MKACTIVITY request for '/svn/!svn/act/0ceca4c5-f7b4-4432-94be-0485559a6040' at /usr/lib/git-core/git-svn line 945.
有没有办法告诉 git 一个新的用户名?git-svn 手册似乎没有帮助:只允许在init
and上添加用户名branch
。我不知道 git 在内部如何与 SVN 一起工作,但我想应该有一种方法可以在之后添加用户名。
请注意,我在 http 上使用 SVN。