In my /.git/info/exclude file I have placed two directories and a file:
workspace
data
config.php
All of which are in the root. While ‘workspace’ and ‘data’ are being ignored, config.php is pushing.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to remove
config.phpfrom the git repo index first, if you want it to be ignored.(See for instance “Making git “forget” about a file that was tracked but is now “
.gitignored”“)Plus, ignoring directory should be specify with an ‘/’ at the end of your line: