撤销git add操作
2012-03-27 15:22
357 查看
http://stackoverflow.com/questions/348170/undo-git-add-before-commitI mistakenly added files using the command
run
git add fileI have not yet
run
git commit.Is there a way to undo this or remove these files from the commit?You want:
git rm --cached <added_file_to_undo>
相关文章推荐
- 第一次使用git,撤销git add操作 (undo git add before commit)
- git---撤销 git add . 操作
- 撤销本地git add操作
- 在commit之前撤销git add操作 (undo git add before commit)
- 在commit之前撤销git add操作 (undo git add before commit)
- GIT 在提交之前撤销add操作
- git 在提交之前撤销add操作
- Git 在提交之前撤销add操作
- git如何撤销通过Add添加所有文件到缓存区的操作
- git 在提交之前撤销add操作
- git 提交前撤销add操作
- git 在提交之前撤销add操作
- 在commit之前撤销git add操作 (undo git add before commit)
- Git 初接触 (三) Git的撤销操作 git reset HEAD -- <file>
- Git的纯命令操作,Install,Clone , Commit,Push,Pull,版本回退,撤销更新,分支的创建/切换/更新/提交/合并,代码冲突
- eclipse git控件操作 回退到历史提交 重置 删除(撤销)历史的某次提交
- Git撤销操作命令
- Git-撤销(回退)已经add,commit或push的提交
- git在未提交commit之前,撤销回退所有操作
- git撤销操作(git checkout; git reset)