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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:47:17+00:00 2026-05-27T15:47:17+00:00

I am new to SVN and I want to commit a code to SVN

  • 0

I am new to SVN and I want to commit a code to SVN using TortoiseSVN. I have C++ headers and source of the code, but I don’t know how to organize the folders in an efficient way before uploading the version to SVN. Any suggestions about how people usually do? Is there any difference between the structure of codes for different languages, for example C++ or java. Should I follow any specific rules?

Update

So after checking the answers I made things a bit clearer. An usual folder structure is the following for one proyect:

/trunk
/branches
/tags

But I also found a similar structure that I liked a lot, which is:

/trunk                  #Keep it to developement mode always.
    /samples            #samples of use
    /modules            #software modules
       /project_modName
           /include     # .hpp files
           /src         # .cpp files
    /test               #unitary tests
/branches               #experimental developements (copies of trunk at various stages)
/tags                   #estable versions
/extras
    /3rdparty           #libs
    /data               #necessary data for developement
    /doc                #documentation
    /resources          #for window applications

At least I like it for multimedia applications code.

UPDATE 2

This update is just to explain how I am creating my repository. I created a folder called structure_svn. Inside I created the structure showned above. I right click on the parent folder and select import. In URL I write the folder path (file:///c:/svn_repos) so automatically the structure is created under svn_repos, without the folder structure_svn.

I want to remark this beacause the folder you right-click on to import will never appear. I just realized when I tried it, and also is explained on toturials.

The next step is to successfuly divide my code inside the created structure.

  • 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-05-27T15:47:18+00:00Added an answer on May 27, 2026 at 3:47 pm

    Here’s how I structure my tree in a programming project (mainly from a C/C++ perspective):

    • /
      • src — Source and header files written by myself
      • ext — External dependencies; contains third-party libraries
        • libname-1.2.8
          • include — Headers
          • lib — Compiled lib files
          • Donwload.txt — Contains link to download the version used
      • ide — I store project files in here
        • vc10 — I arrange project files by IDE
      • bin — Compiled binaries go here
      • obj — The compiler’s build files
        • gcc — If your project size justifies it, make a separate folder for each compiler’s files
      • doc — Documentation of any kind
      • README
      • INSTALL
      • COPYING
      • makefile — Something to automate generation of IDE project files. I prefer CMake.

    A few notes:

    1. If I’m writing a library (and I’m using C/C++) I’m going to organize my source files first in two folders called “src/include” and “src/source” and then by module. If it’s an application, then I’m going to organize them just by module (headers and sources will go in the same folder).

    2. Files and directories that I listed above in italics I won’t add to the code repository.

    Edit: Note that I’m using Mercurial, not SVN, so the structure above it tailored for that version control system. Anyway, I see from your update that you already found one that you like.

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

Sidebar

Related Questions

I have svn repository with source code which I want to link (right click
I'm new to SVN. I'm using the latest version (svn 1.6.9, TortoiseSVN 1.6.7.18415). Some
I have been using git-svn to work remotely on a spike for a new
new git user here. I want to use git, but i'm in an SVN
I want to create a new Subversion repository through Aptana Studio. Both Aptana SVN
Hi I'm new to SVN and would like to know a couple of things
I'm relatively new to SVN and have a rather basic question. I have several
I'm fairly new to SVN and I have a weird behavior issue. I'm working
I have a directory tree under SVN control, and I want to add and
I have forked an SVN project using Git because I needed to add features

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.