不成功的git push - 不能再次推送

我想推入到这样的两个仓库:

[remote "origin"]
    url = https://mrtnzlml@bitbucket.org/mrtnzlml/www.zeminem.cz.git
    url = https://github.com/mrtnzlml/www.zeminem.cz.git
    fetch = +refs/heads/*:refs/remotes/origin/*

几乎完美的工作直到今天。 上次推送(通过PhpStorm IDE)导致此错误:

Push failed
error: Connection time-out while accessing https://mrtnzlml@bitbucket.org/mrtnzlml/www.zeminem.cz.git/info/refs?service=git-receive-pack
fatal: HTTP request failed

不幸的是,在远程服务器上没有这些提交,我不能在本地主机上看到它们(使用git status )。 但我发现get reflog commmand:

91a20c9 HEAD@{0}: checkout: moving from pictures to develop
7829ccc HEAD@{1}: commit: WP like pictures draft
e59196f HEAD@{2}: checkout: moving from develop to pictures

如何跳回7829ccc提交(没有丢失数据)并尝试重新提交? 我发现了一些荒谬的解决方案,例如。 制作新的git clone并复制旧项目的更改,但我不想那么做...


Yaay! ( - :我终于解决了这个问题,感谢这个问题。

所以解决方案其实很简单:

git push origin 7829ccc:pictures
链接地址: http://www.djcxy.com/p/49819.html

上一篇: Unsuccessful git push – cannot push again

下一篇: Git keep some local changes clean but do not push them