Solved

why the Git ignore file is not working

Posted on 2016-11-08
6
79 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
  • 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

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…
In this article you will learn how to create a free basic website on Bitbucket, a git service provider. Polymer creates dynamic HTML components, which allow more flexibility than static HTML. This tutorial uses Ubuntu Linux but can also be done on W…
How to create a branch, fetch changes, and merge them into another branch using the EGit plugin for Eclipse.
How to reset a branch to a previous commit, and how to squash multiple commits into a single commit using the EGit plugin for Eclipse.

803 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