You really don't. Moodle 4.0 has been unsupported since December last year.
To answer your question, the branch is MOODLE_400_STABLE and the final version was 4.0.12, so I have even less idea why you would want to install 4.0.2. Which by the way is 2022041902, so none of this makes any sense.
There is no release (that I can find) with version 20220711.
And, YES, Moodle's branch numbering is ridiculous and almost designed to cause confusion.
To answer your question, the branch is MOODLE_400_STABLE and the final version was 4.0.12, so I have even less idea why you would want to install 4.0.2. Which by the way is 2022041902, so none of this makes any sense.
There is no release (that I can find) with version 20220711.
And, YES, Moodle's branch numbering is ridiculous and almost designed to cause confusion.