How to update the Gitee warehouse after the local code is modified

1. git statusView the currently changed code files

2. git add .All your local modified files are added to the temporary storage area.

3. git commit -m “xxxxx”Inside the quotation marks is your introduction, which is the content of your submission this time, so that you can check it later. This is to store the current content of the index together with the user and log message describing the change in the new submission.

4. git pull origin master(I don’t know what to do, it’s okay if you don’t need it) This is a synchronous code. Merge the latest remote code with your local code first. If you are sure that the remote has not been updated, you don’t need this. It is best to execute the following every time After completion, open the code to check if there is any conflict and resolve it. If there is a conflict, perform the operations of 2 and 3 again after the completion of the resolution. Here master can be another branch name. Note: If the conflict is resolved, steps 2 and 3 need to be performed again.

5. git push origin masterJust push the code to the remote. Here master can be another branch name.

Guess you like

Origin blog.csdn.net/weixin_43472938/article/details/129206402