Git master branches not appearing for all repos in

Answered

I'm very new to pycharm but I'm using github for VCS and have several repos 'attached' to one project window. In the main Git viewer interface (the one that comes up when you hit alt+9) it lists all of the branches of all of the repos in one large list under the 'Remote' category but only has a single 'origin/master' branch that's starred by default but does not have a specific repo it's attached to and it seems to combine every master branch together.

Is there a way to get this view to show the master branch for each specific repo as well? I've found that I can checkout the master branches and get other info about them with the 'git branches' utility but I couldn't find a way to checkout specific master branches in the viewer interface.

Alternatively, is there a way to simply organize branches by repo instead of only into one single super large 'origin' folder?

Thanks!

0
3 comments

Hello Tyler!

Regrettably, it's not possible for now. 
You can filter the log by "Path" and select commit there, right-click on it -> Branch `branchname` -> Checkout.

There is a feature request, please feel free to vote and comment:
https://youtrack.jetbrains.com/issue/IDEA-241921

0
Avatar
Permanently deleted user

Got it, thanks for the sanity check Ruslan!

As a follow up, do you know what the 'origin/master' branch actually refers to in this list then and what its intended use case is? It's the only branch without a repo name in () beside it?

0

Hello Tyler!

You can read more on what origin means here:
https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes

>It's the only branch without a repo name in () beside it?
It means that the branch exists in both submodules. (If there is a repo name next to a branch it means that the branch exists only in the repository specified)

0

Please sign in to leave a comment.