Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to exclude file to push? [duplicate]

Tags:

git

I have repository with one file with the local settings. I have added it to .gitignore and to .git/info/exclude but it was previously pushed to server and git wants to track them.

How to exclude this file?

like image 409
Nips Avatar asked Oct 30 '25 05:10

Nips


1 Answers

you can delete that file from git's index by using git rm <filename> --cached

like image 129
uday Avatar answered Oct 31 '25 22:10

uday



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!