Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete untracked files with eGit (Eclipse)

Tags:

git

eclipse

I've the following problem with eGit:

  • I'm in the commit A with the repository just pulled.
  • I create a file FILE, later i decide to discard it and go back to the previous point (before create the FILE).

I've this actions but none work:

  • Select Reset project with the option Hard (HEAD, index and working directory updated)
  • Stash the project and checkout other branch
  • Checkout other branch (after this the file is still there!)
  • Add the file to the index before and try the 3 options above

In all the cases the file persist with the question mark or plus icon depending on if it out or in the index

like image 645
Addev Avatar asked Sep 22 '12 22:09

Addev


2 Answers

Since Egit 3.0 Kepler (June 2013), a clean action has been added to the repositories view.

clean egit action

like image 50
VonC Avatar answered Sep 22 '22 19:09

VonC


This is implemented in Egit version 2.1, which was released at 2012-09-27.

like image 38
Bananeweizen Avatar answered Sep 22 '22 19:09

Bananeweizen