How Android Studio shares projects to Git@osc hosting

Source: Internet
Author: User
Tags hosting

If there is something wrong with my first publication, please criticize it.

1, install Git. git:http://git-scm.com/downloads/

2, configure the Git.exe command path in the as File->settings->version control->git, such as:


Configure Git for AS

After the configuration is complete, if you click the "Test" button to prompt successfully, the configuration is successful.

3. Create a warehouse on [email protected] to get the warehouse address.



Now here my warehouse address is: https://git.oschina.net/qule510/GitDemoTest.git

4. Create an as project.

5. Select the project in as and create and initialize the Git local repository. Such as:


6. (Go to focus) go to the project directory and right-click on the GIT command line window.

First, you need to execute the following two commands as a basic git configuration to tell git who you are and the information you enter will appear in the submission you created.

git config--global user.name "Your name or nickname"

git config--global user.email "your Mailbox"

If you have set it up, you can ignore the above steps.

Enter the command:

Git remote Add origin < your project address >//Here My Remote Warehouse address is: https://git.oschina.net/qule510/GitDemoTest.git

Git pull Origin Master

git touch init.txt//If a changed file already exists, this step is not required

git Add.

Git commit-m "First commit"//fill in the submission here

Git push origin master//push

By following the steps above, you can successfully share

If this time the update appears the problem prompt: Can ' t Update:no tracked Branchno tracked branch configured for Branch master. To make your branch track a remote branch call, for example,

Git branch--set-upstream Master origin/master

As it says, the git branch--set-upstream Master Origin/master can be updated.

Warm tip: To see more detailed steps, you can view the OSC git Help documentation: http://git.mydoc.io/

How Android Studio shares items to [email protected] managed

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.