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