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)