Use Git in Day06 Idea (4)-After someone else modifies and submits the code to the remote warehouse, I want to update my local code

Fourth, update the code

I remember that the project I created for the first time was submitted to the remote warehouse, and it was modified after being downloaded by others and updated to the remote warehouse. And my local warehouse code needs to be updated.

1. Open the original project in Idea

Insert picture description here

2. Find the directory where the original project is located

Insert picture description here

3. Enter Git Bash Here and update the code

git pull [remote] [branch] Retrieve changes in remote warehouses and merge them with local branches

Insert picture description here

4. The code in idea has also changed

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_43639081/article/details/108609595