I am working on a Git branch that has some broken tests, and I would like to pull (merge changes, not just overwrite) these tests from another branch where they are already
You can fetch and then check out only one file in this way:
git fetch
git checkout -m
git add
git commit
Regarding the git checkout command:
- a branch name, i.e. origin/master
does not include the repository name (that you can get from clicking copy path button on a file page on GitHub), i.e. README.md