Build a warehouse and pull it locally
Go to Gitee’s personal warehouse page and click the plus sign
Fill in the required information and click Create
So our code repository is set up.
Click this button to copy the warehouse address
Execute the command in the terminal git clone http://github.com/Baianli/momo.git
Just write a little program
git add . Add all changed files in the current directory
git commit -m "hello world" Commit to git repository with the commit comment information
Copy the code
Finally, enter git push to push the local code to the remote server, gitee.com
Pull updates from the remote server
If you want to update the local code locally after you have modified it on another device and submitted it to the server, run git pull
This enables synchronization between the local and remote repositories
Fork the repository and upload collaboration
Fork makes a copy of someone else’s repository and modifies it. It requests the original author to merge it with the source code before it is approved by the original author
After making some changes locally, push to the repository fork out by the collaborators themselves.
Find the repository page you fork and hit + Pull Request
Click on a list of configurations
Submit a pull request
The merge request is now visible at the original author
After agreeing to the merge request