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

  • SEARCH
  • Home
  • 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 120575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:49:59+00:00 2026-05-11T03:49:59+00:00

I am new to git, and have a subversion repository that I want to

  • 0

I am new to git, and have a subversion repository that I want to be able to import into a git repository occasionally (for deployment). So I want to perform most of the updates using svn but wanted to see what’s the best way to push it to git (just the default/master branch).

  • 1 1 Answer
  • 3 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. 2026-05-11T03:50:00+00:00Added an answer on May 11, 2026 at 3:50 am

    I know you only want to import the master/trunk branch of your svn repository, but I would like to mention svn2git in order to import your svn into a git repository.

    It is better than git svn clone because if you have this code in svn:

      trunk     ...   branches     1.x     2.x   tags     1.0.0     1.0.1     1.0.2     1.1.0     2.0.0 

    git-svn will go through the commit history to build a new git repo.
    It will import all branches and tags as remote svn branches, whereas what you really want is git-native local branches and git tag objects.
    So after importing this project, you would get:

      $ git branch   * master   $ git branch -a   * master     1.x     2.x     tags/1.0.0     tags/1.0.1     tags/1.0.2     tags/1.1.0     tags/2.0.0     trunk   $ git tag -l   [ empty ] 

    After svn2git is done with your project, you’ll get this instead:

      $ git branch   * master     1.x     2.x   $ git tag -l     1.0.0     1.0.1     1.0.2     1.1.0     2.0.0 

    Finally, it makes sure the HEAD of master is the same as the current trunk of the svn repo.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just created a new Git repository backed by Subversion, using git svn.
We have a non-standard subversion respository that we would like to convert to Git.
I have created a new git repository based on another. They will slowly be
We have a new git repo that is acrued from a svn repo. The
I have a remote git repository where I have a tag (tag-1) that is
I use git-new-workdir to have two working trees for one git repository. This usually
I am new to Git and I seem to have one branch too many
I have a ton of new files to commit. Clicking each one in git
I am new to open source and git. I have been learning git and
I'm trying to move an existing project into a new git repo So far

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.