Reproduced in: http://www.wfuyu.com/technology/22499.html
At present, the mainstream version management tools are mainly svn/git. SVN is one of 1 centralized code management tools, and Git is the 1 Distributed Code management tool that is widely loved by geeks. And based on the git GitHub is the whole universe yards of farmers to improve the force lattice, the necessary artifacts to delve into the technology. Here's how to host the project in Android studio to GitHub.
1. Using Git
1. First create 1 projects on GitHub:
2. Configure the GIT environment if the GIT environment in Android Studio has a problem configuring the setting configuration you can click on the test button on the right to see if the configuration was successful
If you do not download git, you can download it via Http://git-scm.com/download/win and then configure it.
3. Create a repository in a project that requires hosting
After clicking OK, the GUI did not respond but was created successfully.
4. Open the project directory for git bash switch
Use the following command to associate with GitHub
Git remote add Origin https://github.com/[username]/[project_name].git
The URL address can be obtained via the Copy button on the right
Operation:
When you open git bash, each time you are under the C:\Uer path, you need to first switch to the path you want to work with by using the CD command (CD/F/DSS).
Modifying the default path when you open Git bash allows you to switch to a directory that you need to manage without having to use the CD command every time.
To modify the default path method: Right-click the GIT bash icon---> select the short cut title bar---> Modify start in for the directory you want to manage.
5. Hosting a project to GitHub via Git
The first thing to do is git add:
Then commit
Fill in the submission information
Last push
Enter your GitHub account password
6. Oh yes
Projects that need to be hosted are uploaded to GitHub, and people all over the world can read
2, Android Studio also integrates the GitHub plugin, you can directly use the Gitbub:
1. Configure GitHub to fill in the GitHub account password
2. Hosting to GitHub
3.done:
How to use GitHub with Android Studio