English 中文(简体)
吉苏:将不同的变化推向她的库库
原标题:Git: push a different changeset to heroku

我想推一下我存放处的前版本。 我怎么能把以前的变化推向oku湖?

例如:

gitzanoku 07226c49428354b09349ec45078122ce7cd410c

感谢!

www.un.org/spanish/ecosoc EDIT: 一些审判

a) 生产

master
remotes/heroku/master
remotes/origin/HEAD -> origin/master
remotes/origin/master

类似情况

gitzanoku 07226c49428354b09349ec45078122ce7cd410c:master

请允许我:

To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g.  git pull ) before pushing again.  See the
 Note about fast-forwards  section of  git push --help  for details.

我对此表示猜疑,因为我目前对她的oku昆的部署是欧洲复兴开发银行,而且由于我想要部署以前的变化,所以it错。 因此,我重述了新的“ her湖”(取代目前的“ her湖”,删除其参考资料,并创建新的“ her湖ce”,并试图再次推动具体的变革。 此时此刻,我用空洞的oku湖进行部署:

error: unable to push to unqualified destination: master The destination refspec neither matches an existing ref on the remote nor begins with refs/, and we are unable to guess a prefix based on the source ref. error: failed to push some refs to [email protected]:empty-waterfall-8460.git

任何想法,如何在没有这些问题的情况下推动不同的变革? 或者,我是否必须每当某个变化开始就设立一个部门,重新调整她的oku,推动这个部门?

问题回答
git push heroku 07226c49428354b09349ec45078122ce7cd410c8:master

您不妨为这项承诺设立一个分支或分支,供今后参考。

EDIT:我认为应当:

git push -f heroku 07226c49428354b09349ec45078122ce7cd410c8:master

处理第一个错误。 我不敢肯定,在你 rec倒后会发生什么。





相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签