PS: The article takes the clone open source project junit5-samples as an example
Proceed as follows
- Branch clone project from XXX to local (bom is the branch name)
- git clone -b bom https://github.com/junit-team/junit5-samples.git
-
- Create your own local new branch
- git broke dev-junit5 test
- Query the remote warehouse and push the new branch to the remote warehouse
- View remote warehouse: git remote
- Push the new branch to the remote repository ( origin is the name of the remote repository ): git push origin dev-junit5-test
- After this step is completed, the remote repository will generate a branch dev-junit5-test
- Associate the current branch code with the new branch of the remote repository
- git branch --set-upstream-to=origin/dev-junit5-test
- New branch of local branch code remote repository
- git add -A: Submit to the temporary storage area
- git commit 'XXXXXXX': commit to the local branch
- git push origin dev-junit5-test: push to remote warehouse
- Next