How to upload Android Studio Project to github【Simple Guide】

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 and Your Nameyour own user name
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
  1. Check if git is installed successfully.
    Check if git is installed successfully
  2. Log in to github in Android Studio and the
    Log in to github in Android Studio
    following interface appears to be successful
    Insert picture description here
  3. Upload project
    Insert picture description here
    Insert picture description here
    Insert picture description here
    Insert picture description here
  4. If you don't worry, go to github to have a look
    Insert picture description here

Guess you like

Origin blog.csdn.net/qq_41238308/article/details/106106156