Android studio new project uploaded to code cloud through git tutorial details
As a qualified developer, it is essential to manage the project. Today, let's introduce to you how to upload your as project to the code cloud with GIT.
Create a remote code cloud code warehouse
First, we open the code cloud and register an account, then click the plus sign in the upper left corner to create a remote project warehouse for uploading as projects in the future, as follows:
As shown in the figure above, click create to generate a remote code warehouse.
2. Start uploading as code
First, open the newly created as project and click the following at the top of the as:
Then click the project name below to add the project to the local git warehouse
Then the red font will turn green.
Then click the top VCs to upload the code, add comments, click limit and push, and then click define remote to associate with the remote warehouse. Add the code under the code cloud project
Copy and paste address to as
After clicking OK, the following figure will appear, and the push is rejected.
3. Modify the as configuration to upload the code to the code cloud
Click VCs ---- "git ----" pull at the top of as
Go to the remote warehouse to pull the code, and then
This NIMA, pull failed... Take it easy and look down
Click git in the lower right corner of the project as follows
Rematch project local and remote warehouses. After success, you can try to upload the code to the code cloud again. Then go to the code cloud project and check it. Ah, it's amazing. It's uploaded successfully. Then try to pull the code and find that an error will still be reported,
Then, perform the following operations to solve the problem that the code cannot be pulled. As just now, click git master in the lower right corner of the as:
Change the name, click OK, and then try to pull the code locally again. It is found that the pull is successful. so happy...
summary
The above is a detailed explanation of the new Android studio project that Xiaobian introduced to you. I hope it will be helpful to you. If you have any questions, please leave me a message and Xiaobian will reply to you in time. Thank you very much for your support for the programming tips website!