Android Studio usage notes: Git configuration and first submission to repository, androidgit

Source: Internet
Author: User
Tags git client

Android Studio usage notes: Git configuration and first submission to repository, androidgit

Git client URL: http://git-scm.com/download/

Download the corresponding client based on your own platform. Take the Mac system AS an example. After the client software is installed and configured, open the AS configuration panel and find the Git option.

Find the Git executable program in the Path to Git executable on the right and click the Test button on the right.

The prompt indicates that the configuration is successful.

 

My network is very slow, so I didn't use github. Instead, I used git.oscchina.net in China. below is the process of linking oscchina in AS. I am not very good at it, and the steps are complicated.

Apply for an account on the git.oscchina.net website and create a project. The process is no longer mentioned.

 

After creating a project, submit it for the first time

For example, right-click the Git menu and select Enable Version Control Integration.

Select Git from the drop-down list and click OK.

The files in the Module are red. Select a project and right-click it to add it to the submit list.

If you find that the submitted update is rejected, you can find all the hidden Folders ". git" in the directory where the rejected file is located, and then delete it.

If the application is rejected upon the first submission, perform the Pull action first, download the README. md file of the Project repository created on the server, and then Push it.

Related Article

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.