Updated about 12 years ago by Knödlseder Jürgen
How to copy a file from one branch into another?¶
Checkout the branch into which you want to copy the file
$ git checkout destination
and copy the file from the other branch using
$ git checkout other_branch file_to_copy.txt