无法Git拉来更新我的Git本地回购 [英] Unable to Git Pull to update my Git local repo

查看:120
本文介绍了无法Git拉来更新我的Git本地回购的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在本地Git仓库中删除了一个文件。
我想通过更新我的Git回购文件。



我运行以下失败

  git pull 

它说upToDate,但我没有得到最新的文件。
github上的公共回购并不使用SVN,因此问题不能是SVN。



如何更新本地Git回购,这样你可以将你的移除的文件放回到你的计算机上? 8月对于你的问题可能是最好的解决方案。 / p>

您也可以恢复到您所拉取的最后一个版本:

  git重设 -  hard 


I removed a file in my local Git repo. I want the file back by updating my Git repo.

I run the following unsuccessfully

git pull

It says upToDate, but I did not get the newest file. The public repo at github does not use SVN, so the problem cannot be SVN.

How can you update your local Git repo, such that you get your removed File back to your computer?

解决方案

August has the probably best way for your problem.

You could also revert to the last version you pulled:

git reset --hard

这篇关于无法Git拉来更新我的Git本地回购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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