git reset

复制代码
git reset [--soft | --mixed | --hard] [HEAD]

表格版

|--------|--------|--------|---------|---------|---------|-------------------|---------|---------|--------|
| 原始内容 ||| reset前 ||| reset命令 | reset后 |||
| 本地工作区 | 暂存区 | 本地仓库 | 本地工作区 | 暂存区 | 本地仓库 | reset命令 | 本地工作区 | 暂存区 | 本地仓库 |
| README | README | README | README | README | README | --soft HEAD | README | README | README |
| | | | a.txt | | | --soft HEAD | a.txt | | |
| | | | b.txt | b.txt | | --soft HEAD | b.txt | b.txt | |
| | | | c.txt | c.txt | c.txt | --soft HEAD | c.txt | c.txt | c.txt |
| README | README | README | README | README | README | --mixed HEAD | README | README | README |
| | | | 1.txt | | | --mixed HEAD | 1.txt | | |
| | | | 2.txt | 2.txt | | --mixed HEAD | 2.txt | | |
| | | | 3.txt | 3.txt | 3.txt | --mixed HEAD | 3.txt | 3.txt | 3.txt |
| README | README | README | README | README | README | --hard HEAD | README | README | README |
| | | | x.txt | | | --hard HEAD | x.txt | | |
| | | | y.txt | y.txt | | --hard HEAD | | | |
| | | | z.txt | z.txt | z.txt | --hard HEAD | z.txt | z.txt | z.txt |
| README | README | README | README | README | README | --soft HEAD^ | README | README | README |
| | | | 111.txt | | | --soft HEAD^ | 111.txt | | |
| | | | 222.txt | 222.txt | | --soft HEAD^ | 222.txt | 222.txt | |
| | | | 333.txt | 333.txt | 333.txt | --soft HEAD^ | 333.txt | 333.txt | |
| README | README | README | README | README | README | --hard HEAD^ | README | README | README |
| | | | xxx.txt | | | --hard HEAD^ | xxx.txt | | |
| | | | yyy.txt | yyy.txt | | --hard HEAD^ | | | |
| | | | zzz.txt | zzz.txt | zzz.txt | --hard HEAD^ | | | |

图片版

查看暂时区git ls-files --stage

相关推荐
小李不困还能学4 小时前
用git GUI往远程仓库中添加文件/文件夹
git
失途老马5 小时前
Git Patch 生成与应用完整操作手册
git
李白的天不白6 小时前
下载smartadmin框架
git·github
可乐要加冰^-^6 小时前
云雀文档下载
windows·git·github·石墨文档
NaclarbCSDN7 小时前
我写了一个命令行书签管理器,然后抛弃了浏览器书签栏
linux·git·python·github
++==8 小时前
git的安装以及基本命令使用、远程仓库的操作、vscode连接远程仓库进行项目的上传、gitee的使用
linux·git·gitee
kyriewen17 小时前
Git Commit 前自动修复代码风格?配置 Husky + lint-staged,从此 CR 只聊逻辑
前端·git·面试
吹牛不交税1 天前
visualstudio把项目绑定git仓库
git
c238561 天前
git常见错误和ssh验证推送
运维·git·ssh
火山上的企鹅1 天前
Codex实战:APP远程升级服务搭建(四)Node 服务端自动识别 APK 信息
android·服务器·git·github·qgc