Androidstudio Project Submission (update) to GitHub most specific steps

Source: Internet
Author: User

Sometimes we want to advertise the project on GitHub in the process of using studio-developed projects. It used to be submitted in a more troublesome way (cmd). The recent discovery that studio actually comes with this feature will eventually get rid of the command line.

Since you didn't do a very deep study, here's a first step to sharing your project with studio on GitHub.

Two related concepts: Git and GitHub

Git is an open source distributed version number control system. Manage the project version number from very small to very large for efficient and fast processing. Git is an open source version number control software developed by Linus Torvalds to help manage the development of the Linux kernel.

The biggest difference in distribution compared to centralized is that developers are able to submit to the local, each developer through cloning (git clone). Copy a full git repository on your local machine.


GitHub is a source code library and version number control system. It is a site that provides the user with a git service. So you don't have to deploy your own git system to simply register your account and be able to use the GIT services they provide. GitHub can host a variety of git libraries and provide a web interface, and GitHub's unique selling point is the simplicity of branching from another project. Contributing code to a project is easy: first click on the "Fork" button on the project site. The code is then checked out and the changes are added to the code base that was just separated. Finally, a code merge is requested from the project owner through the built-in pull request mechanism.

Get ready

Install Androidstudio and create a new project;

Install the GIT version number control system. Like Git GUI;

Register an account on the GitHub site.

Steps

1 studio's git configuration;

After installing Git, start Androidstudio, open for example the following path File->settings->version Control (expand)->git

Enter the GIT path you installed in the input box after path to Git executable, for example, as you can see:

Click Testbutton if the GIT executed successfully dialog box shows that the configuration was successful, the same time the dialog will show you the version of Git you installed, for example, as seen in the

2 Configuring GitHub login information;

Open such as the following path File->settings->version Control (expand)->github, for example, as seen in the

Fill in the following information, for example:

Host:github.com

Login: Your GitHub account name

Password: Your GitHub account Password

After filling out, click Testbutton. Assume that an example of the following dialog box indicates that the configuration was successful

3 Uploading project to GitHub

Open the project you want to upload. The top menu selects Vcs->import into Version control->share Project on GitHub, for example, as seen in:

Suppose you are the first to commit the project will appear such as the following dialog box, prompting you this is a new repository (repo), you can define your own repo name. and adding descriptive narratives.

Complete Click Sharebutton assume that your project does not have a problem and will appear such as the following interface

The classes that will be submitted are listed here, along with various resource profiles and so on. Click OKButton

Enter your master password Click OK, assuming that the submission is successful in the upper right corner of studio will prompt the relevant information

At this point, open your GitHub site address in your repositories will see the project name you just submitted, click to see the full submission project. To the end of this submission

Project updates

When a project adds a module or a module that changes how to update a project on GitHub, it's actually very easy.

1 If you add a new class to your project, you will be asked if you need to add git when you create the class, for example, as seen in the

Choose yes the class will add Git, the same time the color of the class itself will change (Darcula theme from normal white to green)

This class right-click->git->commit File ... Appears such as the following dialog box

After completing the commit message, click Commitbutton. There may be warnings such as the following. Ignore it click Commit

Right-click->git->repository->push again, for example, as seen in the

Click on push to appear such as the following dialog box, click Pustbutton

At this point, open the project source code on your github. You will find that the new class has already appeared.

2 Suppose that a class in your project has been changed and needs to be submitted again;

Right-click the class->git-add

Feel like there's no change in this step? Actually, that's not true. This class is added to Git.

The next steps are the same as the new classes, which are not mentioned here.

Androidstudio Project Submission (update) to GitHub most specific steps

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.