Explaining Branches, Tags, and the Trunk
*(This is placeholder text until we get a better version - refer to http://dev.wp-plugins.org/wiki/RepositorySetup for a good example)
A standard source control repository contains three top level folders:
- Trunk
- Tags
- Branches
This page will attempt to explain the purpose and use of these folders.
Trunk
This is where your main (current) development takes place. The 'trunk' directory is the root directory for your code. You will (usually) be copying your 'trunk' directory to create tags and branches.
Tags
A tag is an archival snapshot of the current code (the code from trunk directory) to record the state of the code at a specific time. When you do a release, or when you want to create a snapshot of your code for any reason, you do so by creating a tag. Tags are intended as an archive. Once a tag is created you should not commit to it. If you do, the tag effectively becomes a branch. You can read more about creating a tag.
Branches
You can read more about branches here
