Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8392591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:33:10+00:00 2026-06-09T19:33:10+00:00

I cloned a SVN repository into a git repository using git svn clone .

  • 0

I cloned a SVN repository into a git repository using git svn clone. At that point in time, I did not have a username at that site and hence didn’t use the --username option of clone. As I can now commit to the SVN repository with my new username, I would like to add that username. Without it, dcommit simply fails:

% 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.

Is there a way to tell git about a new username? The git-svn manual doesn’t seem to help: adding a username is only allowed on init and branch. I don’t know how git works with SVN internally, but I guess there should be a way to add a username afterwards.

Note that I am using SVN over http.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:33:11+00:00Added an answer on June 9, 2026 at 7:33 pm

    I think you can use this procedure (from the git svn manpage) to create a clone of your existing svn repository, but change the git svn init step so that it specifies a username. Your new git-svn repository will then have a username.

    # Clone locally - make sure the refs/remotes/ space matches the server
    
        mkdir project
        cd project
        git init
        git remote add origin server:/pub/project
        git config --replace-all remote.origin.fetch '+refs/remotes/*:refs/remotes/*'
        git fetch
    # Prevent fetch/pull from remote git server in the future,
    # we only want to use git svn for future updates
        git config --remove-section remote.origin
    # Create a local branch from one of the branches just fetched
    
        git checkout -b master FETCH_HEAD
    # Initialize 'git svn' locally (be sure to use the same URL and -T/-b/-t options as were used on server)
        git svn init --username my_new_name http://svn.example.com/project
    # Pull the latest changes from Subversion
        git svn rebase
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I migrated my SVN repository successfully with Tags into Git using git svn-clone .
I have cloned an SVN repository into a Git repository, and I just want
I have a git repository which tracks an svn repository. I cloned it using
I have cloned a remote SVN repository with git-svn. I have modified a pom.xml
I started cloning an SVN repository using the git-svn's clone operation. After about 6
OK, so I've managed to git svn clone http://repository/project MyProj And that gives me
I'm trying to use git to clone an svn repository with std layout (using
Today I got our svn repository cloned into git. I had some uncommitted work
I am currently doing a git svn clone from an svn repository that has
I have a git svn repository. git svn clone http://myrepo/ myrepo I dont want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.