Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to update and merge branch in netbeans?

Tags:

svn

netbeans

im using netbeans with svn.

i've checked out a project and then i used "copy to..." and chose to copy the trunk to a branch. i deleted the working copy of the trunk and checked out the newly created branch into a working copy and made some changes both in the trunk and the branch.

now..how do i update the branch with the new data of the trunk and how do i merge the branch with the trunk using netbeans?

is this possible? cause with "merge to..." i could only chose to merge from a remote repository to a local folder.

like image 331
never_had_a_name Avatar asked Apr 01 '10 18:04

never_had_a_name


People also ask

How do I merge new branches?

To merge branches locally, use git checkout to switch to the branch you want to merge into. This branch is typically the main branch. Next, use git merge and specify the name of the other branch to bring into this branch. This example merges the jeff/feature1 branch into the main branch.

Does git merge update both branches?

No, merging does only affect one branch.

Can you merge a branch multiple times?

Merging a branch multiple times into another works fine if there were changes to merge. Save this answer. Show activity on this post. Actually yes you totally can, when you merge again it will bring over any commits that don't exist on production.

How do I delete a branch in Netbeans?

Go Branches -> Local (or Remote, depending on which one you need to delete). Select the branch you want to delete, right click on it, and choose Delete option.


1 Answers

how do i update the branch with the new data of the trunk

  1. Check out the branch

  2. Merge the repository trunk into the checked out branch

  3. commit the branch to the repository

how do i merge the branch with the trunk

  1. Check out the trunk

  2. Merge the repository branch into the checked out trunk

  3. commit the trunk to the repository

You can't merge two repository projects in Netbeans without making local copies.

like image 120
Mark Avatar answered Sep 22 '22 20:09

Mark