1. Download the Git tool
Git download address 1: https://git-scm.com/download/win
Install after download is complete
The installation directly executes the exe executable program, and clicks the installation in the next step.
After the installation is complete, right-click on the blank space on the desktop, and the git icon will appear to indicate that the installation is successful.
2. How to host local code in gitee
- Step 1: Register and log in to Gitee official website: https://gitee.com/
- Step 2: Create a new warehouse
After the warehouse is created, as shown in the figure:
1. Create the project you want to submit to the gitee warehouse
2. Right-click on the blank space in the project folder and select Git Bash here
3. Initialize git
git init
At this point, a hidden folder of .git will appear in the project folder
4. Configure git tool parameters
5. Add the project code file into the submission directory
git add .
6. Bind the gitee warehouse path to git
git remote add origin https://gitee.com/XXXXXXX你的仓库位置.git
7. Submit code
git commit -m'提交时的备注信息'
8. Push the code to the repository
git push origin master
9. After the push is completed, you can see that there is code in gitee
3. How to download someone else's code in gitee or github
1. Directly download the code compression package
2. git checkout code
- Copy the address of the warehouse
- Create a new folder, right click on Git Bash here in the folder
git clone 黏贴仓库的代码路径
4. Update the new code in the repository
1. Delete all and download again
2. Implement code update (must be warehouse manager or development team)
git pull origin master