有人能给我解释一下(或者给我一个很好的参考)下面的问题吗?
我知道下面是我必须使用的正确的push命令:
git push origin refs/heads/master:refs/heads/master
(I also know that it has short forms, like:
git push origin master:master
or
git push origin master)
然而,有一次,我做了2次推(错误):
(1) git push origin refs/heads/master:refs/re
我找遍了,也没有找到这个问题的答案。
我有一个在Heroku上运行的应用程序。在我的本地机器上,我通常会实现以下内容:
git add .
git commit -m "whatever change, I know I can add and commit at the same time..."
git push <the-heroku-repo>
然后它会上升,Heroku应用程序中的主分支也会更新。到目前一切尚好。
现在。我想有另一台机器,可以自动从Heroku库中拉出并自我更新。
所以我这样做:
git clone <the-heroku-repo&