Answer the question
In order to leave comments, you need to log in
How to stop tracking a previously tracked file from a git repository?
I have a repository on bitbucket. I am working with a repository on two remote linux and win systems and I need to store two different project configuration files.
How can I make my repository forever forget about the settings file (which is different for different platforms) and stop tracking it and pulling it from a remote repository?
Answer the question
In order to leave comments, you need to log in
Add filename to .gitignore. Further
git rm -r --cached .
git add .
git commit -m "fixed untracked files"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question