copy elements from branch into another branch git code example
Example 1: copy files from another branch git
# git checkout <branch> <path>
$ git checkout other_branch world.txt
Example 2: copy files from another branch git
$ git checkout master