thuliosama / egit

Automatically exported from code.google.com/p/egit
0 stars 0 forks source link

Can't find a way to checkout a single file #102

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Sometimes I want to do a checkout on a single file, i.e., to discard
workspace changes and revert to last commit. Can't seem to find that in the
UI (hopefully not just because I'm a Git newbie ... I want the equivalent
of svn revert for a single file).

Original issue reported on code.google.com by hls...@gmail.com on 29 Jun 2009 at 5:26

GoogleCodeExporter commented 8 years ago

Original comment by robin.ro...@gmail.com on 2 Jul 2009 at 3:26

GoogleCodeExporter commented 8 years ago
I'm looking for this issue, any suggestions?

Original comment by qmx.the...@gmail.com on 9 Jul 2009 at 4:06

GoogleCodeExporter commented 8 years ago
The workaround I use is to select everything (Ctrl-A) and the right-click in the
quickdiff bar and select Revert Selection. The replaces the version with 
content of
the quickdiff baseline, which by default is HEAD.

Original comment by robin.ro...@gmail.com on 15 Aug 2009 at 8:48

GoogleCodeExporter commented 8 years ago
It should be simply added to the Git Staging view, along with the already 
existing "Replace with File in Git Index". The staging view/repo view offer no 
access to a lot of functionality that is available in the navigator. There it 
would be easy to pick the right file, make a comparison (that should be also in 
the context menu), and reset, checkout, etc...

Original comment by gyula.gu...@gmail.com on 22 Aug 2012 at 10:03