GIT – How to merge specific files from another branch

Monday, September 3, 2012 16:41
Posted in category Programming, Unix/Linux, Web

Using GIT you can merge specific files from another branch using the ‘checkout’ command. After you checkout the files do a commit on the current branch.

Example:

$ git checkout anotherBranchName  path/to/file.etx    path/to/file2.ext     path/to/file3.ext

$git commit -m “Merged files from anotherBranchName”

You can leave a response, or trackback from your own site.

Leave a Reply

Connect with Facebook