I just adding an existing project to GitHub using the command line.
Sometimes eclipse shows the branch in the package view like: foo [foo master]
.
My eclipse project is a gradle/java project that was created before doing a: git init
and does not show the branch in the package view.
Also, nothing is shown in the git repositories view.
How do I get eclipse to show me the branch in the package view?
The share option, as suggested by the previous answer, didn't work for me. However, Eclipse Preferences > General > Appearance > Label Decorations > check Git
did work. This made current brench visible in package view.
If your imported project into Eclipse workspace is a git repo, you can Share your project with Git
If without creating a new repo, the act of selecting File > Team > Share Project
and then Git
should be enough for Eclipse to reconsider how it display your project in the Package Explorer (ie with git information on it)
If this does not work, the alternate approach would be to:
(which the OP Ray Tayek reports in the comments having done successfully)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With