[nbusers] Re: Git commit: How to permanently exclude files

  • From: Ondrej Vrabec < >
  • To:
  • Subject: [nbusers] Re: Git commit: How to permanently exclude files
  • Date: Mon, 30 Jan 2012 20:27:11 +0100

I assume you're referring to /application/config/database.php? The file is green-coloured, meaning it was already committed to the repository. In that case it does not matter what you specify in the .gitignore file, those rules won't apply to already committed file (they apply only to new, not yet committed files).
In development builds (upcoming 7.2) there is a possibility to permanently exclude files from commit (will be stroke in the commit dialog and their checkbox in the commit dialog will be automatically deselected) - http://netbeans.org/bugzilla/show_bug.cgi?id=206597 - but that is scheduled for 7.2 and is not integrated into 7.1

Dne 30.1.2012 20:12, mrugendrabhure napsal(a):

I am trying to exclude certain files when Git Commit is executed. I added the 
file to the .gitignore as per the normal convention and netbeans 
documentation, but when I run commit, I still see the file listed.

this is how my .gitignore file looks like:

Please see the attached file, see how it still shows all the files including 
.gitignore and database.php in the commit list.

What I am doing wrong here ?



[nbusers] Git commit: How to permanently exclude files

mrugendrabhure 01/30/2012

[nbusers] Re: Git commit: How to permanently exclude files

Ondrej Vrabec 01/30/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 25 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20150226.965aeb8). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
Please Confirm