How to add Git Project in android studio

I want to add the following into my android Studio project , please tell me how to do that.

https://github.com/dhis2/dhis2-android-sdk

  • How to make git ask before doing complex merge stuff like deleting files?
  • How can I squash merge when merge.ff = only?
  • Convert .gitignore to rsync merge filter include file? (with sed or awk)
  • Git - generate patch for all commits in a branch
  • How to fix stale git branch -r (delete phantom git branches)?
  • `git rebase` entire branch-tree
  • How to select git commit ranges with inclusive end points
  • Using git filter-branch to rewrite authors/committers and commit messages simultaneously
  • 2 Solutions collect form web for “How to add Git Project in android studio”

    Option 1.-Clone It First With Git Clone https://github.com/dhis2/dhis2-android-sdk then Import it in Android Studio

    Option 2- Download this Repo From Here As a Zip File, Open It and Extract, Then Import in Android Studio.

    Option 3- Open Android Studio DashBoard And Click on Checkout From Version Control, And Parte your Repo Link there, It Will DOwnload And Open It ASAP.

    If you want to Use this Project as a module or library then Import It from File->New->Import Module->//…..// OR add this as your Dependencies —

    repositories {
        // ...
        maven { url "https://jitpack.io" }
    }
    
    dependencies {
            compile 'com.github.dhis2:dhis2-android-sdk:8722ca9586'
    }
    

    Cheers.

    Download the zip from github page, unzip it and then go to Android Studio > File > New -> Import Project -> Select your project and import it.

    Hope it helps.

    Git Baby is a git and github fan, let's start git clone.