Solved

why the Git ignore file is not working

Posted on 2016-11-08
6
90 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
composer and github token when run composer with require 4 83
How to set environment variable in jenkins 1 687
Save entire xlsm spreadsheet in github 3 107
GIT Newb Question 2 10
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…
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 Git repository using GitHub, and how to clone and checkout the repository using the EGit plugin for Eclipse.
Explains the Git Index and the differences between a Remote, a Remote Tracking Branch, and a Local (or Tracking) branch.

830 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