01.02.2013 Views

Software Development Cross Solution - Index of - Free

Software Development Cross Solution - Index of - Free

Software Development Cross Solution - Index of - Free

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Tags, branches, and trunks, oh my!<br />

Your version control system has got a lot going on now, but most <strong>of</strong> the<br />

complexity is managed by the server and isn’t something you have to<br />

worry about. We’ve tagged the 1.0 code, made fixes in a new branch, and<br />

still have current development happening in the trunk. Here’s what the<br />

repository looks like now:<br />

BeatBox Pro 1.0<br />

Now we’ve got a tag in our<br />

code that marks this exact<br />

revision as version-1.0<br />

We’ve got a branch for 1.x fixes,<br />

and we can work on that code<br />

separate from new development.<br />

Tags are<br />

snapshots <strong>of</strong><br />

your code. You<br />

should always<br />

commit to a<br />

branch, and<br />

never to a tag.<br />

�<br />

�<br />

�<br />

trunk<br />

version-1<br />

You’d commit<br />

fixes to version<br />

1.0 code here.<br />

The trunk is where your active<br />

development should go; it should<br />

always represent the latest version<br />

<strong>of</strong> your s<strong>of</strong>tware.<br />

A tag is a name attached to a<br />

specific revision <strong>of</strong> the items in your<br />

repository so that you can easily<br />

retrieve that revision later.<br />

Sometimes you might need to<br />

commit the same changes to a<br />

branch and the trunk if the change<br />

applies to both.<br />

Download at WoweBook.Com<br />

All <strong>of</strong> Bob’s fixes are still<br />

in the main branch, which is<br />

called the trunk.<br />

BeatBox Pro 1.x<br />

�<br />

�<br />

version control<br />

2.0!<br />

Branches are copies <strong>of</strong> your code<br />

that you can make changes to<br />

without affecting code in the trunk.<br />

Branches <strong>of</strong>ten start from a tagged<br />

version <strong>of</strong> the code.<br />

Tags are static—you don’t commit<br />

changes into them. Branches are<br />

for changes that you don’t want<br />

in the trunk (or to keep code away<br />

from changes being made in the<br />

trunk).<br />

you are here 4 207

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!