Reputation: 3367
I'm a bit new to Android Studio and I am trying to set up a project I recently checked out from Git. However, I don't want to check out everything, I just want to check out the branch because that branch has the module for my android project.The other branches don't have what is necessary to run the project. This question here: Android Studio - checkout a *branch* from GitHub is basically the same as mine. If anyone could help me, that would be great!
Upvotes: 0
Views: 124
Reputation: 160
You have to understand that GIT fetches the whole repository, afterward you will be able to switch branch at will locally by using "git checkout " to consult a branch or "git checkout -b " to start a development branch for yourself.
If you only want to get a single branch, maybe the repo has a browser which would allow you to get a .zip or .tar of the branch itself without having to use GIT.
Upvotes: 1