I need to ignore .txt file in git. To do so i have included *.txt in the .gitignore file.But when i edit something in one of my .txt file git is still tracking it. Where is the problem or do i make something wrong. Please help me.
If you've ever committed the text file git is already tracking it. You need to remove it from git so that it will be untracked, then it will properly ignore it.
git rm --cached name.txt
You probably already committed the file so it is tracked. You need to:
git rm --cached filename
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With