I've just installed a new extension in magento, committed and pushed. It's on a staging branch of github. I've pulled it on my staging server using
git pull origin staging
and it just broke my website. I need to revert it back. I did
git push -f origin HEAD^:staging
git reset --hard HEAD^
git push origin staging
this removed the extension from my branch. But now when I pull this branch on server using
git pull origin staging
It says "Already up to date".
How to remove this extension from the server now ??
If I understood correctly your problem, you have three repos
- A remote on GitHub
- A local for development
- A local on your staging server
You have first update all the repos, then rewritten the history on the remote and on the development and tried to pull on the staging. Unfortunately, the staging already had already its own history, so try the following on staging:
git fetch
git reset --hard origin/staging
This will force the history on staging to be rewritten as well.
来源:https://stackoverflow.com/questions/19854332/git-pull-says-already-up-to-date-after-undoing-a-git-pull