Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do I do with my svn branch after I merge it into trunk?

Tags:

branch

merge

svn

I needed to do some feature development on a branch, so I created one and now I've merged it back into trunk.

The question is, what do I do with that branch? What's the wise thing to do? Do I remove it from the repos?

It feels untidy and unnecessary to just leave it there.

like image 375
Gezim Avatar asked Jul 04 '10 06:07

Gezim


People also ask

What is the difference between trunk and branch in svn?

A trunk in SVN is main development area, where major development happens. A branch in SVN is sub development area where parallel development on different functionalities happens. After completion of a functionality, a branch is usually merged back into trunk.

How do I switch from svn to trunk branch?

To switch back, just provide the URL to the location in the repository from which you originally checked out your working copy: $ svn switch http://svn.red-bean.com/repos/trunk/vendors .


1 Answers

Normally you just leave it there. It's useful for browsing the repository if you want to see specific commits made during that branch in the future (so you don't have to find and browse a revision). If you aren't going to need that anymore, I would recommend tagging it anyway before deleting.

like image 123
Alex M Avatar answered Sep 28 '22 02:09

Alex M