Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 180
  • Last Modified:

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
0
karthik80c
Asked:
karthik80c
  • 3
  • 3
1 Solution
 
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
 
karthik80cAuthor Commented:
hi Anil Golamari,
Above suggestion is not working.can you please give us another suggestion for this issue
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

 
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
 
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
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.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now