Here is my situation, there is a GIT repository, I am working on master while someone else is working on a branch, say subway, with the following history (say for one single file):
edit:sorry the formatting is not user-friendly, I've updated it as below:
Person A and B are both working on the same file, Person A is working on master with commits: Time1A, Time2A and Time3A changes: added 1, 3, 5 respectively
Person B is working on branch subway with commits: Time1B, Time2B and Time3B changes: added 2, 4, 6 respectively
When PersonB merges from subway to master, the commits history will look like:
Time1A, Time1B, Time2A, Time2B, Time3A, Time3B
and in the file I got: 1,2,3,4,5,6.
If I need to get a clean master before the merge, can I just checkout the commit for Time3A? Does it include stuff merged from subway before Time3?
Thanks