From mboxrd@z Thu Jan 1 00:00:00 1970 From: mwolfe38 Subject: Re: ignoring files/directories in git Date: Sun, 21 Sep 2008 10:42:36 -0700 (PDT) Message-ID: <19596620.post@talk.nabble.com> References: <19596152.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Sun Sep 21 19:43:49 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1KhSyH-0004U1-VI for gcvg-git-2@gmane.org; Sun, 21 Sep 2008 19:43:46 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751274AbYIURmi (ORCPT ); Sun, 21 Sep 2008 13:42:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751319AbYIURmh (ORCPT ); Sun, 21 Sep 2008 13:42:37 -0400 Received: from kuber.nabble.com ([216.139.236.158]:48964 "EHLO kuber.nabble.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750987AbYIURmh (ORCPT ); Sun, 21 Sep 2008 13:42:37 -0400 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KhSxA-00013k-GC for git@vger.kernel.org; Sun, 21 Sep 2008 10:42:36 -0700 In-Reply-To: <19596152.post@talk.nabble.com> X-Nabble-From: mwolfe38@gmail.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Fixed, by removing the trailing / in the names it will then ignore all files in that directory, so now i just have cache log instead of cache/ and log/ mwolfe38 wrote: > > I'm working on a project by myself and using git mostly just to learn > about it. > In my project I have several directories I want to have git ignore. One of > them being > cache/ and the other log/ > I've added them to the .gitignore file which I have in the initial > directory of the repository > The contents of my gitignore are: > > .settings > .cache > cache/ > log/ > .project > > However, if I do > git add . > It will add the files from cache and log anyways. > I know git add . will add anything that hasn't been added but shouldn't it > ignore files in .gitignore? > If not, what is the point, I would just ignore them manually anyways. > The main reason i like doing git add . > is because i'm using symfony php framework which makes good use of scripts > which generates lots if initial files for you and thus adding one at a > time would be a pain. > > Any idea what might be going on here? I thought maybe I had added those > directories before putting them in .gitignore so i used git rm -r to > remove them but they still show back up with doing git add . > > Thanks in advance > -- View this message in context: http://www.nabble.com/ignoring-files-directories-in-git-tp19596152p19596620.html Sent from the git mailing list archive at Nabble.com.