Question

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 ??

Was it helpful?

Solution

If I understood correctly your problem, you have three repos

  1. A remote on GitHub
  2. A local for development
  3. 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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top