Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Using gitignore to ignore (but not delete) files

arvinddhiman20
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 4, 2018

I have a some config files in my git repo I'd like to still exist, but be ignored. I added it to .gitignore, but git status still tells me about changes to files in that directory. I tried git rm -r --cached, but that removes it from the remote repo. How can I stop tracking changes to these files, but still allow it to exist?  What should I do?

1 answer

0 votes
Gonchik Tsymzhitov
Community Champion
January 8, 2021

git reset --hard 

do changes in gitignoire

git add. gitcommit -m "Chnages in gitignore"

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events