When learning Android-Studio, the teacher suggested that we upload our project to Code Cloud, so I learned it and used two methods to go around.
1. Use Android-Studio plug-in
-
Open Android-Studio, File> settings> Plugins> Install Gitee
-
After installing gitee, click the toolbar VCS> Import into Version Control> Share Project on Gitee
-
(You need to fill in the username and password of gitee for the first time to upload the project. Follow the prompts to be OK. I ca n’t demonstrate it here because I uploaded it before.) Fill in the project name and description, and whether it is private. It ’s good. The
above upload was successful.
After the project has been changed, you can submit an update (it is recommended to update before submission)
Second, use git to upload the project to the code cloud
I learned the blogger ’s method here, which is very detailed and effective
. Https://blog.csdn.net/weixin_38899361/article/details/80522569?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant. none-task
- Install git
[Reference link]
https://blog.csdn.net/weixin_44950987/article/details/102619708
-
Create a new project on Code Cloud
-
Copy project link
-
Right click to open git bash
-
Global Settings
-
Create a git repository and enter the following commands in sequence
mkdir 仓库名
cd 仓库名
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin 项目链接
git push -u origin master
- If yes, the existing warehouse has been
uploaded successfully