Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » remove a folder from git control
remove a folder from git control [message #1222371] Fri, 20 December 2013 04:02 Go to next message
Rémy Schumm is currently offline Rémy Schumm
Messages: 1
Registered: December 2013
Junior Member
This is a classical problem - I cannot find a obvious solution. Although it happens twice a week or so...

Scenario
Somebody commits and pushed a folder or file that should not be under version control: e.g. /target or .settings or .project

Question
How to remove this folder or file from git version control, without!! deleting it from the local working copy?? With EGit?

Re: remove a folder from git control [message #1222801 is a reply to message #1222371] Sat, 21 December 2013 07:33 Go to previous messageGo to next message
R Shapiro is currently offline R Shapiro
Messages: 378
Registered: June 2011
Senior Member
I don't know why you wouldn't want to keep .project and .settings under version control, but that aside, the EGit operation is Team -> Advanced -> Untrack
Re: remove a folder from git control [message #1224646 is a reply to message #1222801] Fri, 27 December 2013 05:40 Go to previous message
Matthias Sohn is currently offline Matthias Sohn
Messages: 491
Registered: July 2009
Senior Member
And note that you can't commit files you untracked using the commit dialog since it does the
equivalent of git commit -o which ignores the git index. Though you can commit such untracked files
using the staging view.
Previous Topic:How to check status of local branch with respect to remote branch in a lightweight way?
Next Topic:Compare With/Replace With bug in nightly build?
Goto Forum:
  


Current Time: Sat Apr 19 21:53:50 EDT 2014

Powered by FUDForum. Page generated in 0.02227 seconds