Androidstudio using git to upload items to GitHub (very detailed, very comprehensive) (by Starry Wuge)

Source: Internet
Author: User

Reprint please mark Source: http://blog.csdn.net/lsyz0021/article/details/51292311


Today, this article teaches you to solve these problems:

1. How to upload a project to GitHub via Androidstudio git

2. How to upload the existing project additions or other files to GitHub via Androidstudio git

3. Delete the warehouse created on GitHub

4. How to import items from GitHub into Androidstudio


The first thing to install the GIT client: Http://pan.baidu.com/s/1o8BynCA

first question: Uploading a project to GitHub via Androidstudio git

1. Configure Androidstudio First

1.1 Add Git.exe Executable program



Click Test OK


This indicates that the test passed.


1.2 Add a GitHub account

2. Upload the project to GitHub





Fill in the information



Click OK



Follow the instructions



Here, you can go to your GitHub to see the warehouse you created.





The second problem : uploading the existing project additions or other files to GitHub via Androidstudio git

If we have added a lot of classes and code to this project, and we want to sync to our previously created GitHub repository, how do we set up the operation?

Let's start by creating a class called Hello



When you create this class you will be prompted if you need to join Git.


Add a changed class to Git


This class right-click->git->commit File ... The following dialog box appears


and push it to GitHub.


Click Push



Let's take a look at GitHub.




Third: Delete the warehouse created on GitHub

Find the warehouse we want to delete first



After clicking Settings, drop-down page to the bottom



Enter the name of the warehouse and click the button below to delete



Fourth: How to import a project from GitHub into AndroidstudioWhat if we found a good project on GitHub and we want to import it directly into studio?
1, find a project you want to clone (can try: https://github.com/lsyz0021/RSScan1.git) Copy link

select GitHub in Studio

paste the copied address into the URL address box



Choose According to your needs: This window is open in the current window and the new window opens

This concludes the tutorialfill in the information

Androidstudio using git to upload items to GitHub (very detailed, very comprehensive) (by Starry Wuge)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.