Connect Android Studio to GitHub account

  1. Enable Github in Android Studio

    1. Connect Android Studio to GitHub account
      1. Go to settings --> version control --> select GitHub
      2. Click + sign --> select "Log in with Token" --> Click "Generate"
      3. It will lead to your GitHub account
      4. Select "Generate Token"
      5. Select the key generated 
      6. Paste the key and click "Add Account"

    2. Share an Android project on GitHub
      1. Git has to be installed in host environment
      2. In Android Studio --> Vcs --> share project on Github --> Select "Share" --> Select "Add"
    3. Commit and push Android code in GitHub
      1. To pull the latest code from GitHub
      2. To push the changed files to GitHub ->  Select the "Commit" Tab
      3. Select commit and push button
    4. Manage branches with Git
      1. Select Git --> Branches

      2. Give the New Branch name
      3. Now the new changes you will commit as section #2 above will be in the new branched version
      4. If all the changes in the branch are good, we will follow below to merge them into the master.
      5. Go to branches
      6. First, select Master --> Checkout
      7. Again go to branches -->In the new branch select "Merge with current" , It will merge the changes in master

    5. Clone Github repository
      1. In Github, select the following --> Code 
      2. Select File --> Project from the version control --> paste the HTTPs text and click clone.

Comments

Popular posts from this blog

Devops overview

EdgeAI

GIS Dashboard for RailwayLine Safety