I'm seeking guidance on how to obtain two different states of a project - one before and one after a Pull Request (PR) - using Git commands. Currently, I'm able to view the changes in the PR on GitHub interface, but I need to download the projects in two states(before and after).
Here's what I aim to accomplish:
Retrieve the project state before the PR: I want to download the project state as it was before the PR submission.
Retrieve the project state after the PR: Similarly, I need download to the project state as it appears after the PR submission.
I've tried switching to the main branch, but I'm uncertain how to identify the exact commit hash of the main branch at the time of the PR submission. Is there a straightforward method to directly download the projects in their respective states before and after the PR?
I appreciate any insights or guidance on how to tackle this issue effectively. Thank you!
For example:
I want to download the project in two states(the one is the red state,and the other is the green state).

To get the original state of the project, in most cases a normal clone of the repository is enough: