Solved

why the Git ignore file is not working

Posted on 2016-11-08
6
141 Views
Last Modified: 2016-11-29
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
Comment
Question by:karthik80c
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 18

Expert Comment

by:Anil Golamari
ID: 41882216
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
 

Author Comment

by:karthik80c
ID: 41883372
Thanks Anil Golamari

I will add this and let u know
0
 

Author Comment

by:karthik80c
ID: 41895505
hi Anil Golamari,
Above suggestion is not working.can you please give us another suggestion for this issue
0
Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

 
LVL 18

Expert Comment

by:Anil Golamari
ID: 41896860
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
 

Author Comment

by:karthik80c
ID: 41897038
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
 
LVL 18

Accepted Solution

by:
Anil Golamari earned 500 total points
ID: 41898454
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

Featured Post

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

To properly understand GitHub, let’s divide it into two words ‘Git’ and ‘Hub’. Git is basically a ‘Distribution Version Control’ (DVC) and ‘Source Code Management’ (SCM) system widely used by software programmers while Hub means the efficient centre…
A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
How to create a Git repository using GitHub, and how to clone and checkout the repository using the EGit plugin for Eclipse.
How to commit changes, push them to a remote repository, and pull them from another location using the EGit plugin for Eclipse.
Suggested Courses

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question