Using Subversion SVN How To Merge Files From Branch To Trunk

Subversion is an open source versioning tool widely used for managing the code. In my previous subversion post i have written about the basics of SVN.

SVN command to Merge files from branch to trunk

In subversion when you commit files you get the revision number of that commit. Use that revision number to merge the files from your branch to trunk. You can merge files one by one or in bulk. If you are beginner try to merge file one by one once you master you can easily handle it.

Subscribe Our Tutorials

Get Latest Updates on Facebook

For example- I am merging my files from example1 branch to trunk. Before that i have commit one file from example1 whose revision number is 3458.

Once the merging is successful you can commit the file with appropriate comment.

After -m switch in double quotes write your comment.

When conflict occurs while merging your files to trunk then it shows message like this

Resolved this conflict by checking the df(diff-full) and then switch to edit mode. Resolved the conflict then press ctrl+x to save the changes. After that press r.

To check the log use

Shows the latest commit log.

About WebRewrite

I am technology lover who loves to keep updated with latest technology. My interest field is Web Development.
Tagged , . Bookmark the permalink.