eclipse-egit / egit

EGit, the git integration of Eclipse IDE
https://www.eclipse.org/egit/
Eclipse Public License 2.0
13 stars 6 forks source link

Allow to restore/fetch file(s) from another branch #11

Closed kwin closed 6 months ago

kwin commented 6 months ago

Description

As explained in https://stackoverflow.com/questions/2364147/how-to-get-just-one-file-from-another-branch both

works on the CLI. Unfortunately there is no equivalent for either of those operations in EGit up till now

Motivation

In order to split up a branch into two separate ones it is often necessary to work based on files in another branch rather than on commits.

Alternatives considered

Using CLI

Additional context

No response

Bananeweizen commented 6 months ago

select branch/commit/ref > show in > history > scroll to wanted file in history view > check out this version

kwin commented 6 months ago

@Bananeweizen Thanks for the pointer, it would be helpful to explicitly add those file checkouts to https://github.com/eclipse-egit/egit/wiki/User-Guide#checking-out-an-existing-branch or a dedicated sibling section.