I have some changes in my current branch from a particular path in another branch. (There was a dependency that needed bringing across.)
I initially brought these changes across using the following commands:
git checkout master git checkout -b new_branch git checkout other_feature path/to/dependency Now I need to unpick this dependency, or at least aspects of it (a subpath within path/to/dependency).
I have run git diff --name-status master..new_branch path/to/dependency and it displays the differences as expected.
However, git checkout master path/to/dependency does not successfully revert this directory's contents to that of master. Why is this the case?