我已经 fork 了某人的GIT存储库:
https://github.com/nippysaurus/toodledo-objc
将其克隆到我的本地计算机上,显示带有以下信息的来源:
* remote origin
Fetch URL: https://[email protected]/nippysaurus/toodledo-objc.git
Push URL: https://[email protected]/nippysaurus/toodledo-objc.git
HEAD branch: master
Remote branch:
master tracked
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push':
master pushes to master (up to date)
当我将更改推送到“原始主机”时,git会显示“所有最新信息”,但在我的GitHub存储库中没有任何更新。
这里发生了什么?
编辑:
有人建议我检查文件实际上是否已提交...文件已经提交,我向您保证。
commit 0d3a21616d82c8e5a89baaf85d745fc2cfdf614f
Author: nippysaurus <[email protected]>
Date: Wed Jun 1 13:19:14 2011 +1000
updated readme
这是已更新的文件:
commit 0d3a21616d82c8e5a89baaf85d745fc2cfdf614f
Author: nippysaurus <[email protected]>
Date: Wed Jun 1 13:19:14 2011 +1000
updated readme
diff --git a/README.mdown b/README.mdown
index fb8ee14..a71aa57 100644
--- a/README.mdown
+++ b/README.mdown
@@ -3,7 +3,7 @@ toodledo-objc
An _unofficial_ toodledo-API implementation in ObjectiveC.
-This library currently uses [version 1.0 of the API](http://www.toodledo.com/info/api_doc.php "Toodledo API 1.0 spec") which has been offic
+This library currently uses [version 1.0 of the API](http://www.toodledo.com/info/api_doc.php "Toodledo API 1.0 spec") which has been offic
Supported:
另外,我可以看到文件的本地版本与GitHub上的版本完全不同,更改已确定地添加到了本地仓库中,但没有推送到远程仓库中。
最佳答案
可能是您在除master分支之外的另一个分支上,然后键入:
git push origin HEAD:master
所以git知道您要上推当前HEAD而不是master分支。
关于git - GIT-推送到(GitHub)原始主机不会执行任何操作,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/6195973/