why the Git ignore file is not working

Hi Experts ,

We have added the following lines to .gitignore file .
bin/*
web.config

Open in new window



But its keep on tracking those changes when we change something . How can i get rid of it

Please see the screenshot
Capture.PNG
karthik80cAsked:
Who is Participating?
 
Anil GolamariCommented:
Use attached file. Also if you tried to check-in web.config file earlier and just recently trying to ignore web.config file then you have to run below command from git bash and you should be able to solve your issue.

git rm --cached web.config
.gitignore.txt
1
 
Anil GolamariCommented:
Try adding below lines to your .gitignore file. I am not aware of your requirement. But I think it's better to keep the web.config file checked in instead of ignoring the changes [Just a suggestion as I am not sure of your requirement].

*.dll
*.pdb
*.config
1
 
karthik80cAuthor Commented:
Thanks Anil Golamari

I will add this and let u know
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
karthik80cAuthor Commented:
hi Anil Golamari,
Above suggestion is not working.can you please give us another suggestion for this issue
0
 
Anil GolamariCommented:
Where exactly you are placing this .gitignore file. Can you provide a copy of the copy that you are using to verify or test from my end.
0
 
karthik80cAuthor Commented:
hi Anil Golamari

this .gitignore is present outside the project.i have attached the image of the folder below.please check it.
img.png
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.