Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove ORIG_HEAD and FETCH_HEAD from history view in Eclipse

Tags:

git

eclipse

egit

I recently started using Eclipse Kepler with EGit plugin and these branches are not what I am used to. Is there a way to permanently stop these branches from being created? I tried removing them manually, but it does not work and I don't want to have them the next time I do fetch or rebase.

like image 515
Banana Avatar asked Aug 02 '13 07:08

Banana


2 Answers

As I understand from the comments on your question, you only want these refs not to be shown in History view. You may try to uncheck Additional Refs from Preferences > Team > Git > History. This should do the job.

like image 171
Guillaume Darmont Avatar answered Nov 18 '22 11:11

Guillaume Darmont


ORIG_HEAD and FETCH_HEAD are symbolic refs. They simply record the sha1 of the last Origin and the last Fetch.

In one sense they are an implementation detail, but because of the scriptability of Git on Linux they can be used to provide extra power user capability.

As you delve further into the manual and tutorials you will appreciate what they can do for you (usually when you made some mistake and these refs remember an important state that you can go back to)

like image 45
Philip Oakley Avatar answered Nov 18 '22 10:11

Philip Oakley