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 commit
The 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