The first step is to download the GIT client and install
: https://git-for-windows.github.io/
The second step is to configure Git in Android Studio (note that the C:\Program Files\git\bin\git.exe in the first image is the bin directory of my Git installation) and the GitHub account (if not, you need to register on GitHub earlier)
Click Test and the successful! will pop up
Step three, upload the project
The first time you upload a prompt, such as the upper right corner, display the library has been created, but the code is not uploaded.
* Please tell me who is you . Run git config–global user.email "[email protected]" git config–global user.name "Your name" to set Your account ' s Defau Lt identity. Omit–global to set the identity is only in this repository. Fatal:empty ident name (for) not allowed during executing git-c core.quotepath=false commit-m "Initial commit xxx" –
My solution:
Repeat the third step again, you will be prompted to enter the Hgithub account password interface, and then succeeded. can also be seen on GitHub.
There is another solution on the Internet: http://blog.csdn.net/baidu_17313961/article/details/52068846
Uploading projects to GitHub via Android studio