简体   繁体   English

Git:修改推送请求后丢失文件

[英]Git: Missing files after modified push request

I forked a repository from github, did a few changes and pushed them back to my github repository. 我从github分叉了一个存储库,做了一些更改,然后将它们推回到了我的github存储库。 I did a pull request and was told to change a few things. 我提出了请求请求,并被告知要进行一些更改。 So I changed a few things, committed them and did a git push. 因此,我更改了一些内容,将其提交并进行了git push。

Problem is, the files werent added to my repository and instead the state of my repository was revoked to the state before my last changes. 问题是,没有将文件添加到我的存储库中,而是将存储库的状态撤消到我上次更改之前的状态。 I cant find my changes in the history as well. 我也找不到历史的变化。 Is there any chance I can save my work or do I have to do it again? 我是否有可能保存自己的工作,还是必须重新做一次?

Do you see your new commit in Github? 您在Github中看到新提交了吗? Do you see them locally? 您在本地看到它们吗? Have you pushed to another repo instead of your Github's one? 您是否已推送到另一个仓库而不是Github仓库? A different branch? 不同的分支?

Try looking at http://github.com/your_user/your_repo/network to see commits in chronological order. 尝试查看http://github.com/your_user/your_repo/network ,以按时间顺序查看提交。 Maybe they're there in another branch. 也许他们在另一个分支那里。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM