How to select repository for staging view in Eclipse Luna 4.4?

北城以北 提交于 2019-12-10 14:28:56

问题


I'm not able to find a solution to a documented bug in Eclipse (Luna 4.4). I've cloned a git repository from Github into my eclipse workspace view and imported the associated Maven project into my project space. When I then display the staging view in Eclipse, it appears, but says "No Repository Selected" up top. I'm therefore unable to drag any changed files into the staging area and commit them. How do I associate my cloned repository with the staging view?


回答1:


Try enabling linking between the Git Staging view and other views. You do so by pushing the "Link with Editor and Selection" button on the top right of the view, to the right of the "Refresh" button.

In the top image, the view is not linked.

In the bottom image, the view is linked and the button appears "pushed"




回答2:


"Enabling linking between the Git Staging view and other views" didn't help in my case. I also tried deleting branch and checking out again. Nothing worked.

What I did was:

Right click on any of the modified file -> Team -> Commit.

Somehow it worked and I could see all modified files in unstaged changes.




回答3:


  1. click on git icon,
  2. select the repositorie you want to use
  3. right clik to show the menu
  4. then select "show in"
  5. then select "git staging"


来源:https://stackoverflow.com/questions/30992337/how-to-select-repository-for-staging-view-in-eclipse-luna-4-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!