Because the two projects are basically the same, when creating a new project, I want to pull the basic template from the completed project to reuse the code, but only need a certain submission record and the previous code.
git switch -c branchname <commitId>
Git official documentation and documentation examples