May I know what is the command in terminal to force remove cache from GIT?
As per what I know to remove GIT is git rm --cached thefilename
But now I am getting an error
error: 'tutorial.h' has staged content different from both the file and the HEAD (use -f to force removal)
So, may I know how am I going to remove this?
Here are some ways you can try to fix your caching problem, in order of escalation: Try holding down the Shift key while pressing the Refresh button. Close your browser and re-open it (make sure you are NOT on the cached page) and delete your temporary Internet files (clear your cache).
Click on “Privacy & Security” on the left side menu. Step 4: Scroll down a bit until you find the “Cookies and Site Data” section, then click on “Clear Data…”. Step 5: Select “Cached Web Content” to clear your browser cache. Step 6: Select “Cookies and Site Data” to clear your browser cookies.
git rm --cached -f thefilename
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