How do I copy a version of a single file from one git branch to another?
Posted
by madlep
on Stack Overflow
See other posts from Stack Overflow
or by madlep
Published on 2008-11-21T01:50:37Z
Indexed on
2010/03/29
11:23 UTC
Read the original article
Hit count: 119
I've got two branches that are fully merged together.
However, after the merge is done, I realise that one file has been messed up by the merge (someone else did an auto-format, gah), and it would just be easier to change to the new version in the other branch, and then re-insert my one line change after bringing it over into my branch.
So what's the easiest way in git to do this?
© Stack Overflow or respective owner