What does git in vscode do?
Git is currently the most advanced distributed version control system in the world, used to manage code , many compilers currently support git, and VSCode is such an editor. Generally, when performing git operations, you need to manually enter a large amount of code. Git in VSCode can easily complete these operations with just a click of a button.
Functional features of Git:
From the perspective of a general developer, git has the following functions:
1. Clone the database from the server (including code and version information) to this machine.
2. Create a branch on your own machine and modify the code.
3. Submit the code on the branch you created on this machine.
4. Merge branches on this machine.
5. Create a new branch, fetch the latest version of the code on the server, and then merge it with your main branch.
6. Generate a patch and send it to the main developer.
7. Look at the feedback from the main developer. If the main developer finds that there is a conflict between two general developers (a conflict that can be resolved cooperatively between them), they will be asked to resolve the conflict first, and then Submitted by one of them. If the lead developer can resolve it himself, or there are no conflicts, pass.
8. Generally, developers can use the pull command to resolve conflicts. After resolving conflicts, they can submit patches to the main developer.
Recommended related articles and tutorials: vscode tutorial
The above is the detailed content of What does git in vscode do?. For more information, please follow other related articles on the PHP Chinese website!