[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
Ondra

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

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:
================
tmp/
.htaccess
.DS_Store
application/logs/log-*
/nbproject/private/
/application/cache/
/application/config/database.php
.gitignore


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 ?

Thanks.




Attachments:
http://forums.netbeans.org//files/commit_696.png




[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 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close