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 09:02 Go to next message
Rémy Schumm is currently offline Rémy SchummFriend
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 12:33 Go to previous messageGo to next message
R Shapiro is currently offline R ShapiroFriend
Messages: 386
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 10:40 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 612
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: Thu Dec 18 02:37:54 GMT 2014

Powered by FUDForum. Page generated in 0.08285 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software