Androidstudio related GitHub

Source: Internet
Author: User
Tags git client

1, Premise: 1, has github account and password GitHub official website: HTTPS://GITHUB.COM/2, downloaded the git client client: HTTP://PAN.BAIDU.COM/S/1SLVG7FF2, New project: WHEELVIEW_SOURCE_ANALYSIS3, set up github account, password file--->setting--->version Control--->github1, Fill in your GitHub account number and password 2, click on the Test button, if the following box appears, the setting is 3, sometimes will pop up the following prompt box, directly enter your password is OK 4, configure Git tool 1, in path to git executable git Installation path, which git on the command line will show you where Git is installed. 2, click the Test button, if the following box appears, the configuration is successful 5, add Git version control for the project 1, 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 warehouse 6, uploading items to GitHub warehouse 1, adding ignore files and folders "Here we don't need to add ignore files" When we androidstudio associated with SVN, we generally want to add the ignore file, the file to be ignored is as follows: But when Androidstudio associates GitHub, we don't need to manually add the ignore file, because when you create the project, The system has added the ignore file to us by default. Gitignore, as shown in: I just because of manually added ignore files, and then checkou the project, because the lack of relevant files, resulting in engineering problems, such as (1) The project does not have a local.properties file, (2) The project is not associated with GitHub, so you can try it. 2. VCS--->import into Version Control--->share Project on Github3, fill in new repository Name,remote name, and description, Click Share4, click Share will pop up the following dialog box, to select the file you want to upload, and a commit messagecommit message is your commit log, indicating what updates this submission or why to submit 5, click OK, the project will start uploading, the upload will pop up the following dialog box: We fill in the account number and password, and then click Login to 7, enter your GitHub page below, you can find that your project has been uploaded 8, modify the file and submit 1, arbitrarily modify a file 2, Click submit Button 3, click on Commit and push 4, we entered the GitHub site of our project directory, found that the file has been synchronized with the local 9, synchronization in the case of collaborative development of multiple people, we need to update the code frequently, and the GitHub site code to synchronize their own code 1, click the Download button 2, Click the OK button in the Pop-up dialog 10. CheckOut Project If you do not have this item locally, then we need to CheckOut the project from the GitHub site to the local 1, VCS--->checkout from Version Control--- >GITHUB2, such as, select the project URL, local directory, the project in the local file name, click Clone3, the following actions according to the hint is easy to understand, not 11, note 1, we upload the project, we must be Android studio Switch to the project directory, and cannot switch to another directory, otherwise, when we upload, some files will not be uploaded, will only upload. The idea folder and the contents of the app folder, and 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.