目录 1. git reset:还原已经提交到远程仓库的提交记录 2. git revert 1. git reset:还原已经提交到远程仓库的提交记录 # 重置暂存区,但文件不受影响 # 相当于将用 "git add&