Background: When we want to push the local project to the remote factory warehouse, how do we do it, without further ado, let everyone go through the process.
1. Create a new warehouse on gitee. If you have not registered, you need to register
.
After filling in the warehouse name and description, mainly do not check the initialization warehouse, the project description we can add an md file by ourselves.
2. Find the project file we want to push, use the git command to associate and push.
3. The git command flow.
1. Initialization
git init
2. Associate remote warehouse
git remote add origin 你的远程仓库地址
3. Add the file to the temporary storage area
git add .
4. Submit the files in the temporary storage area and add instructions
git commit -m 'first'
5. Push to the remote warehouse branch, the default is master
git push -u origin "master"
When we see this screen, it means success.