Git Failed During Push And Now Says Up To Date

耗尽温柔 提交于 2020-01-25 02:28:07

问题


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.

Output of git status:

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)

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.

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?

Edit:

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


回答1:


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

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.



来源:https://stackoverflow.com/questions/17556300/git-failed-during-push-and-now-says-up-to-date

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!