This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version = NetBeans IDE 8.2 (Build 201609300101) Operating System = Linux version 3.16.7-48-desktop running on amd64 Java; VM; Vendor = 1.8.0_92 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.92-b14 Reproducibility: Happens sometimes, but not always STEPS: * Right click on project, Git->add * Right click on project, Git->commit and add message. On list I don't see ignored files via .gitignore * Right click on project, Git->remote->push to upstream ACTUAL: sometimes ignored files via .gitignore are already ignored, sometimes not EXPECTED: files ignored via .gitignore should not be pushed on commit
Created attachment 163134 [details] IDE log
Are you saying that even though the files are ignored by .gitignore, they are committed into the repo when you do Git->Commit? What is the pattern inside .gitignore? And what is the file's path?
(In reply to Ondrej Vrabec from comment #2) > Are you saying that even though the files are ignored by .gitignore, they > are committed into the repo when you do Git->Commit? What is the pattern > inside .gitignore? And what is the file's path? Yes, I had to put a new .gitignore inside the directory where files to be ignored resides currently to ignore them. Files full path are: /home/my-directory/public_html/app/config/app.php /home/my-directory/public_html/app/config/session.php /home/my-directory/public_html/app/config/cache.php So in the .gitignore file on root project I had: app/config/app.php app/config/session.php app/config/cache.php Doing a git via konsole these files are correctly ignored but Netbeans tracks constantly the files on git add - git commit on IDE, then when they are listed on commit dialog I had to uncheck these files for ignoring.