Androidstudio related GitHub

Source: Internet
Author: User
Tags git client

1, the premise:1. GitHub account and password GitHub official website:https://github.com/2. Download the GIT client client:http://pan.baidu.com/s/1slVg7ff2. New project: Wheelview_source_analysis3. Set up github account, passwordFile--->setting--->version Control--->github
1. Fill in your GitHub account number and password 2, click on the Test button, if the pop-up box below, then the setting is successful 3, and sometimes will pop up the following prompt box, enter your password directly OK
4. Configure Git tools
1, in the path to git executable fill in the Git installation path, we choose the GIT installation directory under the Bin folder Git.exe2, click the Test button, if the following box appears, the configuration is successful
5. Add git version control to the project1. VCS--->impoet into Version Control--->create Git repository Select the project folder to synchronize
At this point we have linked the project to GitHub, but the project has not yet been uploaded to the GitHub repository6. Upload the project to the GitHub repository1, add ignore files and folders "Here we do not need to add ignore files"when we androidstudio associated with SVN, we usually add the ignore file, the file to ignore is as follows:
However, when Androidstudio associates GitHub, we don't need to manually add the ignore file because the system has added the ignore file to us by default when creating the project. Gitignore, as shown in:
It is because I manually added the Ignore file, and then checkou the project, because the lack of related files, resulting in engineering problems, for example, (1) The project is not local.properties file, (2) The project is not associated with GitHub, You can go and have a try. 2. VCS--->import into Version Control--->share Project on Github3, fill in new repository Name,remote name, and description, Click Share
4, click Share will pop up the following dialog box, to select the file you want to upload, and commit messagecommit message is your submission log, indicating what updates or why to submit
5, click OK, the project will start uploading, upload the time will pop up the following dialog box: We fill in the account and password, and then click Login to be able to
7. Go to your GitHub page and you'll find that your project has been uploaded.8, modify the file and submit1, arbitrarily modify a file 2, click the Submit button
3. ClickCommit and push
4. We entered the GitHub website under our project directory, found that the file has been synchronized with the local9. SynchronizationIn the case of multi-person co-development, we need to update the code frequently and synchronize our code with the code on the GitHub website 1, click the Download button 2, click the OK button in the Pop-up dialog box

10. Checkout ProjectIf this project is not available locally, then we need to CheckOut the project from the GitHub site to local 1, VCS--->checkout from Version Control--->github2, such as, select the URL of the project, Local storage directory, the project in the local file name, click Clone3, the following operation according to the hint is easy to understand, can not
11, the attention point 1, when uploading the project, we must switch Android studio to the project directory, and not switch to another directory, otherwise, we upload some files will not be uploaded, Only upload the. Idea folder and the contents of the app folder, and the other files in the root directory of the project will not be uploaded (this note seems wrong, you can try it yourself)

Androidstudio associated GitHub

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.