P
P
Prepod212019-11-08 20:57:39
git
Prepod21, 2019-11-08 20:57:39

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

1 answer(s)
E
Evgeny Samsonov, 2019-11-08
@Prepod21

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 question

Ask a Question

731 491 924 answers to any question