System environment: Ubuntu | Deepin | Windows
Domestic access to github is slow. Sometimes Android Studio will prompt the connection failure. You can use the domestic code cloud gitee. This guide is also applicable.
First, prepare a github account. Just apply directly.
Here is the official user guide of github. You can take a look at the first application. The method used to upload projects with other codes is not as convenient as Android Studio. Generally, git commands are used to upload projects.
Next, I will demonstrate how to upload Android Studio Project to github.
- [Windows] First, install the git environment. git official website download | If the download is slow, you can move to my Lanzou Cloud download (only 64-bit version is available, please leave a message if you need 32-bit version)
- 【Ubuntu】
sudo apt install git -y
Configure the git environment (if there is no configuration, an error will be reported when uploading the project)
- Windows is in git bash
(Win菜单里面找)
| Ubuntu executes the following commands step by step in the terminal to inform git of his identity [email protected]
Is your own github login email andYour Name
your own user name
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
- Check if git is installed successfully.
- Log in to github in Android Studio and the
following interface appears to be successful
- Upload project
- If you don't worry, go to github to have a look