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 8674097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:37:18+00:00 2026-06-12T19:37:18+00:00

I have been using git for 2 years now and love it. However, I

  • 0

I have been using git for 2 years now and love it. However, I am doing some work for a company that insist in using svn so I need to port my git way of doing things to svn.

This is what I have learned so far:

svn co https://the.remote.repo
touch myrepo/trunk/mytest.c
svn add myrepo/trunk/mytest.c 
cd myrepo/
svn commit -m "added test file"

which checks out my repo, adds a file, commit it and then pushes it.

I already have a non-svn project (non-git too, it’s not under version control yet (awful I know)). How can I turn my existing project into a svn repo ? I can do this:

svn co https://the.remote.repo my_existing_non_svn_directory

which creates a trunk sub-directory in my_existing_non_svn_directory. With git there is no trunk so this would work but with svn, do I have to move all my code into the trunk ? Is there some way round this or is it just an svn thing ?

Many thanks.

  • 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-12T19:37:20+00:00Added an answer on June 12, 2026 at 7:37 pm

    With Subversion (unlike Git), you can easily check out a partial tree. So in your first example you might do:

    svn co https://the.remote.repo/trunk myrepo
    

    Then you won’t have the trunk/tags/branches hierarchy in your working directory, which makes this simpler and faster.

    In your second example, if you have a mostly empty Subversion repo (where you have set up the trunk/tags/branches hierarchy), then you can check out https://the.remote/repo/trunk and get an empty directory into which you can add your files.

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

Sidebar

Related Questions

Some Background I have been using Git for a while now. The projects that
I have been using git for some time now, and i like it, however,
I have been using the Git bash for doing my commits until now and
We have been using gforge server for cvs/svn. Now we are moving to git.
I'm using git-svn to work with an SVN repository. My working copies have been
I have been using git-svn to work remotely on a spike for a new
I've been using git for some time now and understand how commits work, tags,
I have been using git and git-svn for a while now but we have
I have been using Git for some time now to manage my own personal
I have been using Git for my version control for a while now, but

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.