1. Create an empty WorkSpace (which can be used to store multiple repositories) on the disk, such as E:\WorkSpace
2. Open Git Bash
3. Switch to the workspace => Clone the remote warehouse to the local => Switch to the local warehouse => initialize the local warehouse
(Here is disk H as a separate workspace)
4. Create a local branch new-branch => View all branches and switch to new-branch
5. Place the prepared file in the corresponding folder, for example, test. TXT => SRC \ test
(Or use a compilation tool to write and save, here only as a process demonstration)
Go back to Git Bash:
(View the changed file => Add the changed file and submit it to the local repository => Look again)
(* here refers to all files, and the quotes after -m are the comments submitted this time)
Git add * commit all the files in a team project. There may be some conflicts in branch merging.
7. Submit the local branch new-branch to the remote branch branch-for-xxx
Note: How to check how many branches are in a project’s remote repository:
Open the participating project and under <>code it shows:
(3 commits, namely, three commits from all participants)
Number of branches (2 branches, indicating that the project has two branches in the remote repository)
Click on Branch to open to view All Branches: