Eclipse Egit. Checkout creates new commit. Why?

前端 未结 2 1669
野趣味
野趣味 2021-01-28 21:46

As I understand GIT, when I checkout on commit, I should get its files copy in my work directory, but no new commit should appear. Though when I use EGit and checkout on

2条回答
  •  囚心锁ツ
    2021-01-28 22:22

    You have to work with the History view instead of with the Git Reflog view (see git reflog and toniedzwiedz's answer for details):

    1. Tell the History view which history should be shown: e. g. in Git Repositories view right-click a repository and choose: Show In > History.
    2. In the History view enable the option Show All Branches and Tags (right button in the view toolbar). Otherwise, only commits of the current branch are displayed.

提交回复
热议问题