Search code examples
javaeclipsegitgithubegit

How can I get other branches than "master" to show in my package explorer?


So I am really new to this so please execuse any incorrect terminology.. I am part of a private repository for a software project on Github..I imported the Git-project to eclipse using the URL of the repository, my problem is, only the master branch shows in my package explorer..but other participants created other branches with their code..how can I get those other branches to show so I can check the code/eventually run the program? As you can see in the picture There are two branches showing in Remote tracking but not in Local..?Snapshot


Solution

  • You have to create the local branch corresponding to the remotes that you fetched when cloning and then check out them. You could do that in the same time with one command:

      git checkout NameOfTheRemote