Remove ORIG_HEAD and FETCH_HEAD from history view in Eclipse

倖福魔咒の 提交于 2019-12-21 05:25:09

问题


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.


回答1:


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.




回答2:


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)



来源:https://stackoverflow.com/questions/18011606/remove-orig-head-and-fetch-head-from-history-view-in-eclipse

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