Scenario:
I have a remote git repo for a website, cloned to my local working directory.
When I am working in the cloned repo (master branch),
- I delete test.html, ($ git rm test.html)
- then commit the change ($ git commit -m “Removed test file”)
- finally push to remote repo (master) ($ git push)
However, I navigate to the page in browser: http://[website]/test.html, the page still shows.
It seems test.html yet been deleted. I am pretty sure that I have deleted it in local cloned branch, committed and pushed.
Am I doing anything wrong or missing any step?
Thank you in advanced!
When pushing to a remote location it will update the repository but won’t update the checkout. If you want to update the checkout you have to write a post-receive hook doing that.