How to make eclipse neon show git branch in package view?

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].

  • Files have different revision numbers in Eclipse (Subversion)
  • Eclipse changes file mode from 644 to 755 on all files it touches
  • funny refname error when creating a new remote branch
  • What are the nameless heads and how do they occur when I configure to pull * from * in git?
  • Target location for project “ ” already exists, can not move project
  • Cannot move project as it overlaps… Git/Eclipse
  • 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?

  • GIT clone and first GIT push issue
  • How to discard local commits in Git?
  • How can I have Github on my own server?
  • remove .gitignore from the staging
  • Can different git-svn clones of the same svn repository expect to be able to share changes then git svn dcommit?
  • When you set a global configuration option for git on Windows, where does it get written to?
  • 2 Solutions collect form web for “How to make eclipse neon show git branch in package view?”

    If your imported project into Eclipse workspace is a git repo, you can Share your project with Git

    https://wiki.eclipse.org/images/a/ae/Egit-0.9-getstarted-share.png

    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:

    • switch to a new workspace
    • import the project there,
    • try and share it

    (which the OP Ray Tayek reports in the comments having done successfully)

    The share option, as suggested by the previous answer, didn’t work for me. However, I opened Eclipse Preferences, navigated to General -> Appearance -> Label decorations, and checked Git in this View. This made current brench visible in package view.

    Git Baby is a git and github fan, let's start git clone.