【精选】git核心功能文件恢复(git reset/git checkout/git restore/git revert/git stash/git commit --amend)_狂奔的蜗牛x的博客-CSDN博客

网站介绍:文章浏览阅读1.4k次,点赞2次,收藏12次。文件恢复工作区、暂缓区、仓库(提交历史)git rest三种模式git rest --soft(提交历史(仓库))git rest --mixed(暂存区,提交历史(仓库))git rest --hard(工作区,暂存区,提交历史(仓库))git checkout(工作区)git restoregit revertgit stashgit amend参考链接git一大堆后悔药,而且很有疗效工作区、暂缓区、仓库(提交历史)理解关于文件恢复,需要理解Git的基本流程,所有的恢复的依据以及原理,都是根据这个_git restore