git - 如何取消暂存所有已暂存以进行提交的文件?
问题描述
说我想取消暂存所有这些文件。是否有一个命令可以这样做?
hend0825@csel-apollo:/home/hend0825/3081_s20/repo-hend0825/project/src $ git add -A
hend0825@csel-apollo:/home/hend0825/3081_s20/repo-hend0825/project/src $ git status On branch pause/resume
Your branch is up to date with 'origin/pause/resume'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: ../../exercises/ex02_inheritance/composed.h
modified: ../../exercises/ex02_inheritance/derived.h
new file: ../../exercises/ex02_inheritance/inherit
new file: ../../exercises/ex02_inheritance/inherit.h
modified: ../../exercises/ex02_inheritance/main.cc
new file: ../../exercises/ex02_inheritance/main.o
modified: ../drivers/bus_driver.cc
modified: ../drivers/route_driver.cc
new file: #bus.cc#
modified: bus.cc
modified: bus.h
new file: ../tests/.gitignore
new file: ../tests/.route_UT.cc.swp
new file: ../tests/bus_UT.cc~
new file: ../tests/route_UT.cc~
modified: ../web_code/web/main.cpp
modified: ../web_code/web/my_web_server_command.cc
modified: ../web_code/web/my_web_server_command.h
modified: ../web_code/web/visualization_simulator.cc
modified: ../web_code/web/visualization_simulator.h
modified: ../web_graphics/sketch.js
解决方案
<file>
是可选的:
git reset HEAD
推荐阅读
- c# - 将 ImageUniqueID 插入 JPEG 的 EXIF 数据而不使用 .NET 修改图像
- python - 二叉搜索树的最大深度
- c# - 无法使用 AutoMapper 映射集合
- c++ - Clang 和 MSVC 中的 lambda 需要捕获未使用 ODR 的对象
- charts - Google Charts API CalendarChart
- solr - 标题字段中的部分匹配分数大于产品描述字段中的完全匹配分数
- java - Wordnet (JWI):获取一个单词的例句
- python - python django中的if-else语句
- mysql - MySQL 数据求和的季度等值
- php - 使用get方法从url获取数字作为php中的字符串