Git在推送期间失败,并且现在保持最新状态 [英] Git Failed During Push And Now Says Up To Date

查看:284
本文介绍了Git在推送期间失败,并且现在保持最新状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse上使用egit,在提交/推送过程中发生了一些事情,推送失败了,现在它说一切都是最新的,但是仓库没有我的提交(在Github UI中未显示),并且我不能再次提交它,因为它认为不同的文件是相同的。

I'm using egit with Eclipse and during my commit/push something happened, the push failed and now it says everything is up to date, yet the repo does not have my commit (its not shown in the Github UI) and I can't commit it again because the files that are different it thinks are the same.

git状态的输出:

git status
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   .DS_Store
#   runwaysdk-client/.settings/org.eclipse.wst.validation.prefs
#   runwaysdk-common/.settings/org.eclipse.wst.validation.prefs
#   runwaysdk-main/doc/scrum_notes.txt
#   runwaysdk-manager/target/
#   runwaysdk-server/.settings/org.eclipse.wst.validation.prefs
nothing added to commit but untracked files present (use "git add" to track)

列出的文件我想保留为未跟踪文件,其中之一与回购不同的是 runwaysdk-test / pom.xml ,但是正如您所看到的,它没有被列为不同。

The files that it listed I want to keep as untracked, one of the files that differs from the repo is runwaysdk-test/pom.xml but as you can see it wasn't listed as different.

我认为提交有效,这意味着我的机器上的存储库应该比远程存储库(github)具有更多的提交,我只是需要以某种方式推送它?

I "think" that the commit worked, which would mean that the repo on my machine should have one more commit than what the remote repo (github) has, I just somehow need to push it?

git push
Everything up-to-date


git remote -v
origin  git@github.com:terraframe/Runway-SDK.git (fetch)
origin  git@github.com:terraframe/Runway-SDK.git (push)

我该如何解决这个问题?

How in the world do I fix this?

编辑:

git日志显示我的最新提交确实已成功提交到本地存储库中。

git log shows that my latest commit was indeed comitted successfully to my local repo.

推荐答案

Github今天在文件服务器上遇到了一些麻烦。

Github had some trouble with a fileserver today. You were probably affected by that.

您的提交应该在那里。如果刷新页面(并清空浏览器缓存)后在Web界面中未显示该消息,请联系support@github.com。

Your commit should be there. If it does not show up in the web-ui after refreshing the page (and emptying your browser cache), please contact support@github.com about it.

这篇关于Git在推送期间失败,并且现在保持最新状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆