1
git checkout someoldhash
git checkout -b rollback_branch
git remote add heroku [email protected]:myapp.git
git push heroku rollback_branch:master --force
fetching repository, done.
error: src refspec rollback_branch does not match any.
error: failed to push some refs to '[email protected]:myapp.git'
但我可以做
git push github someoldhash
,它工作正常。
如何將我的分支回滾到Heroku?
你試過git push --force heroku HEAD:master? – VonC 2014-11-05 08:35:10
我會嘗試一下,你能解釋一下這個區別嗎? – quantumpotato 2014-11-05 15:53:19
嘿,那有效。有什麼區別? – quantumpotato 2014-11-05 15:54:08