I am working on project on my local machine. so i have different DB details, so i edited 2 files.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: product/db.py
modified: product/prms.py
Now i don't want to commit it and want to ignore them locally so that no matter what i edit in those files they never gets pushed to remote repo
I tried put them in
.git/info/exclude
Then i did
git rm --cached <file>
but then system is removing them
Changes to be committed: (use "git reset HEAD ..." to unstage)
deleted: product/db.py
deleted: product/prms.py
But i don't want to remove them as well
How can i fix that
EDIT: I don't want push anything to remote repo regarding that. i just want to ignore edits to those file from my compuer perspective only. so that when i got to office and then i make chnage in that file then it should work as normal. but from my home any edits should be invisible to git