Git pulls a branch from a commit

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

Acho que você gosta

Origin blog.csdn.net/qq_41548644/article/details/117591561
Recomendado
Clasificación