how to build engine according to a specific git commit

since unreal update the commit.gitdeps.xml file for every big unreal release version ,how to build a version between two big edition as its commit.gitdeps is not update,for example ,i want to build a version between 4.26 and 4.27,the commit.gitdeps is not work correctly when setup

You go to release link and try to find the version you want.
Screenshot 2024-05-13 at 2.00.11 PM