取消gitpull误动作
原创当这两个分支机构被单独打开并且意外地一起打开时,此时需要撤销它们。git pull
解决方法
1、运行 git reflog 命令查看历史更改,如下所示:
d6fb707 HEAD@{0}: clone: from http://192.168.121.11/llb.git
//git地址是虚构的
2、然后用git reset --hard HEAD@{n},(n是您要回退到的参考位置)回退。
例如,可以运行上图。 git reset --hard d6fb707
版权声明
所有资源都来源于爬虫采集,如有侵权请联系我们,我们将立即删除
相关文章
最新文章
- 0.05ms 往返:localhost 为什么不能直接当网站? 10小时前
- Fornax's Guide to Fast Ethernet 10小时前
- Possibly leaked NSA Cyberattack tool behind attacks (2017) 11小时前
- Steve Wozniak on Writing Apple Integer Basic 11小时前
- PayByPhone is stealing $50M/year from their users 11小时前
- Grand Theft Auto 6: A Landmark Achievement That Redefines a Console Generation 11小时前
- Research Acceleration: The Jagged Frontier 12小时前
- Google Embraces Geothermal Technology to Vaporize Rock for Clean Power 13小时前
- Microsoft's Agent Framework PyPI package compromised to steal credentials 14小时前
- Nvidia's Seven Billionaires Have Lost a Third of Their Wealth 14小时前
itfan123


