Pull the remote branch to the local modification and upload it

It is best to ensure that the network is smooth before git

If there was a project locally before and it was controlled by git, just update it directly

git pull

1. Pull the warehouse

git clone https://github.com/username/warehouse name.git 

 

2. Modify the project (omitted)

3. Add all changes to the staging area

git add .

git add .command adds all changes to the staging area, including new files, modified files, and deleted files. This means that all changes will be included in the next commit.

4. Submit the changes to the local warehouse

git commit -m "commit message"

git commitThe command submits the changes in the staging area to the local warehouse

where "commit message" is your commit message.

5. git pushes to the remote warehouse

git push

For more detailed operations, please refer to

Git Basic Operation | Rookie Tutorial (runoob.com) 

Guess you like

Origin blog.csdn.net/m0_52559040/article/details/130601522
Recommended