恢复 git reset --hard
时间: 2023-09-23 07:06:34 浏览: 148
详解git reset --hard 和 git reset --soft区别
如果你执行了git reset --hard操作,那么未提交的本地更改将会丢失。如果你没有提交或者通过git add将更改暂存起来,这些更改将无法恢复。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [恢复 git reset --hard](https://blog.csdn.net/wqq1027/article/details/115522154)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [恢复git reset --hard的误操作](https://blog.csdn.net/m0_37556444/article/details/90407863)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文