In my Eclipse environment, I'm able to pull, push and commit my project. However, when I opened my Git perspective, the git repository association is not under the Git Repositories tab. There are multiple ways to reconnect back your git repository link. Here they are.
Using add git repository icon
This is the simplest way to reconnect your git repository link. If you don't have the icon listed, use the import project steps described the next section.
- Open Git perspective.
- Under the Git Repositories, click on the Add an existing local Git Repository to this view icon.
- Browse to the root directory of your project and add the git repository found under the search results.
Using import projects
- Open Git perspective.
- Under the Git Repositories, right-click on an empty space and select Import Projects....
- Click on Show other specialized import wizards link to see all the other options.
- Select Git > Projects from Git(with smart import).
- Select Existing local repository.
- Obviously, you can't select a git repository since it is not listed. Therefore, click on Add... button.
- Browse to the root directory of your project and add the git repository found under the search results.
- Follow the instructions.