Androidstudio sharing projects to [email protected] There are two scenarios:
1 already has a project under development and now we're going to share it with [email protected].
2 Create a new project on [email protected], then ...
First, download git, and install
http://git-scm.com/downloads/
Second, specify the path to the git command in the file-settings in studio,
Select the path to the GIT client in path to git executable. Find the Git.exe installed in the Git bin directory
Click the "Test" button to the right of the table of contents, if the following window appears to indicate successful configuration:
Method one applies to new projects
Create a warehouse on [email protected] to get an HTTPS connection to the [email protected] warehouse, for example
Https://git.oschina.net/*************.git
Vcs--checkout from Version control--git paste URL in the Studio toolbar
Set the directory location and click Clone.
will create and copy the warehouse file to the local project and you can do git add commit in the local project.
First prompt for open source China account and password
After the validation is passed, the remote Git project can be copied locally.
Note If the GIT repository project is not managed based on Gradle, it will prompt for conversion to gradle management, preferably in this way, please refer to the information for specific conversions.
After modifying the code, select the project right click-git-commit Directory popup, select "Commit and push" commit, the file will be submitted directly to the remote repository,
=========================================
Method two applies to an existing project
Create a warehouse on [email protected] to get an HTTP connection to the [email protected] Warehouse http://git.oschina.net/********
To turn the project into a git project, step: Vcs--import into Version control--create git Repository Select your local project in the popup window
After clicking OK, the GUI did not respond but was created successfully.
Open git bash to switch the project directory
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 Effect:
If the failure can refer to: http://blog.163.com/023_dns/blog/static/1187273662013111301046930/
Hosting a project to GitHub via Git
First, right-click on the project git add: Then commit (fill in the submission information). Last push.
Http://www.wfuyu.com/technology/22499.html
How Android Studio uses Oschina's git service