How to get just one file from another branch?
See also git how to undo changes of one file? Update August 2019, Git 2.23 With the new git switch and git restore commands, that would be: By default, only the working tree is restored.If you want to update the index as well (meaning restore the file content, and add it to the index in … Read more