We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7e9cfe commit d1e160cCopy full SHA for d1e160c
notes/Git.md
@@ -44,14 +44,14 @@ Git 版本库有一个称为 stage 的暂存区,还有自动创建的 master
44
45
- git add files 把文件的修改添加到暂存区
46
- git commit 把暂存区的修改提交到当前分支,提交之后暂存区就被清空了
47
-- git reset -- files 使用当前分支上的修改覆盖暂缓区,用来撤销最后一次 git add files
+- git reset -- files 使用当前分支上的修改覆盖暂存区,用来撤销最后一次 git add files
48
- git checkout -- files 使用暂存区的修改覆盖工作目录,用来撤销本地修改
49
50
<div align="center"> <img src="../pics//17976404-95f5-480e-9cb4-250e6aa1d55f.png"/> </div><br>
51
52
可以跳过暂存区域直接从分支中取出修改,或者直接提交修改到分支中。
53
54
-- git commit -a 直接把所有文件的修改添加到暂缓区然后执行提交
+- git commit -a 直接把所有文件的修改添加到暂存区然后执行提交
55
- git checkout HEAD -- files 取出最后一次修改,可以用来进行回滚操作
56
57
# 分支实现
0 commit comments