I have recently switched to a new workspace and have been unable to get some of the EGit functionalities to run since.
For example, when I right click and choose "Compare with", I now only have "Revision" and "Local History" as options - the "Commit" option is gone. The same goes for right clicking "Replace with".
Clicking on "Team" after right-clicking no longer produces the "Show in History" option.
The annotations on the right, which show which line of code has been added by who, also no longer shows.
I am sure that there are some more functionalities that I have lost since changing my workspace, but these were the most common ones that I used.
Anyway, my question would be if anyone has any tips on what I need to do in order to get these options back. I've searched the Eclipse and EGit documentations and boards, but have not had much luck.
You need to add the repositories you are working with to make EGit aware of them. In the Repositories view, select the Add existing repository tool button from the top of the view and choose the repositories in which your projects are stored.
Afterwards, you may need to Share the projects with their respective repositories (see What does the option "Auto share projects located in git repository" of EGit mean?). Then you should be set up again.
Related
Is it possible to remove the Projects tab like I can remove the issue tab? Because we don't really use the Projects tab , nor the issue tab.
According to this GitHub issue post it doesn't seem that it is possible to remove the projects tab just like the pull requests tab. Github should make a setting where you can definitely remove this tab, as many repositories aren't using this new feature Github got going on. I'm going to contact GitHub contact page shortly to get ahold of this issue.
As of 10/28/2016
They said this will be considered as one of the top priorty for Github Developers as said in thier statement:
Hi!
I have a question on how to delete the projects tab from your github repository. Is this possible? Can you guys implement this any time soon? I already have asked a question here about it : How can i remove projects tab , and there is also a github issue about it. If you can inform me more that will be helpfull :-)
This is not possible currently. Thanks for the suggestion though! I have added it to our list for our team to consider.
Thanks,
GitHub Staff
Sadly , as of right now its not possible to delete the project tab :( .
Note: since March 24th, 2017, this seems possible.
See "Disabling projects" from Ayman Nadeem (aymannadeem):
Users with admin privileges on a repository can disable Projects by navigating to that repository's settings and unchecking the "Projects" box.
Similarly, organization owners can disable Projects by navigating to an organization's settings and clicking "Projects" in the sidebar.
On this page, unchecking the "Enable Projects for the organization" box will disable organization-wide Projects, and unchecking the "Enable Projects for all repositories" box will disable Projects for all repositories in the organization.
Disabling Projects:
hides the Projects tab from the repository and organization navigation,
removes Projects from Issue and Pull Request sidebars, and
hides Project-related events from Issue timelines.
Disabled Projects are also inaccessible via API requests.
Is it possible in EGit to see the simple history of a file?
Team > Show in history shows all commits to all files. Not useful.
I am looking for the history of a file. There is a button in the History view that says Show changes to selected resource but no way to select a resource.
There also does not appear to be any way to compare with a specific version unless that version has a tag.
The pieces seem to be there, but are they put together properly?
(No complex branching or other cleverness. I normally use the command line for this type of work but should not have to.)
You can open a file (or select it from project explorer) and do:
Right Click -> Team -> Show in history. This will open the following view:
The filter circled in red is: "Show all changes of selected resource and its children" which basically will filter only the commits that relate in any way to the resource you've selected (you can chose the different filters to get a better understanding of how they differ from each other).
The problem was that the Team > Show in History needs to be run from the Project Explorer window. When I first found those scoping buttons I right clicked on the class file's edit window and did the Team > Show in History there. That appears to be broken and only shows all changes.
(Thank you for your replies. Knowing that it could be done and by those scope buttons let me look further. I rarely use the Project Explorer, preferring to just type the class/file name into the Navigate dialog.)
Some other answers suggest clicking on Team > Show in History. This menu item does not show up. Instead, Team > Show Local History shows up.
I have Git Staging tab open all the time. I saved a small change to the file I wanted to see the history of. This caused the file to show up in the Unstaged Changes in Git Staging. I then right-clicked on the file, clicked on Show In and then History. This showed me the history of the file according to Git.
I'm using MercurialEclipse 2.1.0 (looks like latest) with Eclipse Indigo.
I can't seem to find a way to see the entire history of a file as available in remote 'central' repository (e.g. like it works with SVN) -- the history only seems to show up to the revision that I currently have in the workspace (in other words in e.g. Synchronize view (in workspace mode) I can see that there are 'incoming' changes in file but 'Show History' wouldn't show me anything about these changes).
Even if I 'Pull' (without 'Update') and check file history it still seems to stop at the current revision.
Anything I can do?
Is there any way
With MercurialEclipse the Synchronize view works best with the "Mercurial Changesets" model. Switching to that will show all of the incoming changesets (be sure the "All branches" button is pressed).
For the 2nd item, having pulled all the changesets, you can see all history if you press the up arrow button in the history view once. This will show all history for the folder that contains the file.
I just created an ignore-on-commit changelist as described in SVN: Is there a way to mark a file as "do not commit"? and it's awesome on the command line, making it much easier to view the changes I care about in the command line.
Having all this power and organization now I select all my projects in eclipse and go to Team > Commit and there is no notion of changelists in the commit dialog and I still have to go through all the changes and tediously select which files to commit.
Am I missing something in Eclipse' Subversive that would allow me to use changelists in the commit dialog?
I found the following setting, but it doesn't seem to change anything...
I see two possibilities here:
1. Using svn:ignore
The easiest solution would be to add the files you don't want to commit to your svn:ignore list.
You can do it in Subversive through the Team>Add to svn:ignore... menu:
2. Using change sets
The alternative is to :
go in the Synchronize view
click the Show Change Sets button
you can then add changed files to change sets (and create new change sets) from the right-click menu.
You can find more information in the Subversive documentation.
I'm using Eclipse (Indigo) with an SVN plug in.
I right-clicked in the project view, selected Team > Synchronize With Repository, then it prompted with something like 'we want to switch to the synchronize perspective? Ok?' -- I made the mistake of checking the `remember my decision' checkbox, and then I clicked 'No'.
So now when I do a 'synchronize' it doesn't take me to the Sync perspective. How do I tell Eclipse I changed my mind, and get it to show me the Sync perspective on sync?
Window->Preferences->Team
"Open the associated perspective when a synchronize operation completes"
select Always or Prompt