Android Studio submitted git for use for the first time, androidgit
Installation:
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.
Update:
Update the files in the new git repository through pull.
. GitignoreFiles do not need to be updated.
Submit:
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.
Then select Commit Directory...
Commit Message is required. Click Commit. Then select Push again...
(Skip this step if Commit and Push is selected)
For the first time, you need to set up a remote host to copy the HTTPS connection from the Git @ OSC repository to the URL.
Finally, select the project to be submitted and click the Push button.
If you find that the submitted update is rejected, you can find all the hidden folders in the directory where the rejected file is located.. GitAnd then delete it.