Clone a repository using the terminal: Guideline
Github projects can be imported directly into Android Studio.
File -> New -> Project from Version Control -> GitHub.
Then enter your github username and password. Choose the repository and hit clone.