【发布时间】:2014-12-22 11:44:23
【问题描述】:
我确实提交到本地 repo 并且它工作正常。 但是当我推送到远程仓库时它失败了:
$ git push origin master
Everything up-to-date
Linux 写入“Everything up-to-date”,但在 github 上的远程仓库(使用 SSH 密钥成功插入)中只有 11 天前的东西。 怎么了?
更新
这是提交后的前一个输出 (ci = "commit -a")
$ git ci
[detached HEAD 5b42c77] updated with financial report to calculate for exact contractor and some with table layout for _analogs.php
12 files changed, 3071 insertions(+), 110 deletions(-)
rewrite htdocs/protected/controllers/FinancialreportController.php (61%)
$ git push origin master 5b42c77
fatal: 5b42c77 cannot be resolved to branch.
$ git push master 5b42c77
fatal: 'master' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
$ git push origin 5b42c77
fatal: 5b42c77 cannot be resolved to branch.
$ git push 5b42c77
fatal: '5b42c77' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
更新 2
$ git checkout master
M htdocs/protected/runtime/application.log
Switched to branch 'master'
Your branch is ahead of 'origin/master' by 28 commits.
【问题讨论】:
标签: git repository push git-remote