1. Download the warehouse to local
1. First open the warehouse and click to download the compressed package
2. Unzip the downloaded compressed package and open it in the current directory
2. git operation
1. Open git bash in the current directory of the file
2.Initialize git
git init
This command will generate a hidden .git folder
If it is not the first time, there is no need to use this command
3. Place the project in this directory. If the project is changed, the original file will be overwritten.
4.Add all files in the folder
Use the following command:
git add .
5. Add comments
git commit -m "添加项目文件"
6. Add the https address of the remote warehouse
Copy the address of the remote warehouse
git remote add origin 《远程仓库的https地址》
7. Push the files to the remote warehouse
Force push to warehouse
git push -u origin master -f