Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do you use the branches/tags/trunk convention?

Tags:

svn

Do you always follow the convention of putting branches, tags and trunk directories at the top level of your Subversion repository? Lately, I have stopped bothering and nothing bad has happened (yet)!

It should be possible to move directory trees around if there's ever a need to create them. Am I building up trouble for later?

like image 388
Steve Pitchers Avatar asked Sep 23 '08 19:09

Steve Pitchers


People also ask

How do I use SVN trunk branches tags?

All you need to do is make a copy of your project using "svn copy". This command will require the URL of your project's /trunk directory as well as the URL of the directory where you want to create your branch. This location will virtually always be inside of your /branches directory.

What are branch trunk and tags?

A tag is just a marker. Trunk would be the main body of development, originating from the start of the project until the present. Branch will be a copy of code derived from a certain point in the trunk that is used for applying major changes to the code while preserving the integrity of the code in the trunk.

Is branch and trunk same?

In software development, a trunk is the base code into which all subsequent code is merged. Copies made from the source code are known as branches, extending outward from the trunk.

What are branches and tags?

The difference between tags and branches are that a branch always points to the top of a development line and will change when a new commit is pushed whereas a tag will not change. Thus tags are more useful to "tag" a specific version and the tag will then always stay on that version and usually not be changed.


1 Answers

Have you tried branching or tagging yet? Until then, there's no problem. However, an added benefit of using the branches,tags,trunk convention is that it's exactly that -- a convention. People expect to see that, so they know what to do when they need to fork.

like image 135
Danimal Avatar answered Oct 02 '22 07:10

Danimal