Git学习笔记之git add
2015-05-29 20:58
295 查看
git add -- Add file contents to the index.
添加文件内容到索引(暂存区)。
Before running the commit command, you must use the add command to add new or modified files to the index.
在运行git commit命令之前,必须用git add命令将新的或者修改过的文件添加到索引(暂存区)。
Options:
-n,--dry-run
Don`t actually add the file(s), just show if they exist and/or will be ignored.
并不是真正的添加文件,只是显示它们是否存在或者被忽略。
-v, --verbose
Be verbose.
使用啰嗦模式执行命令。
-f, --force
Allow adding otherwise ignored files.
允许添加另外被忽略的文件。
-i, --interactive
Add modified contents in the working tree interactively to the index. Optional path arguments may be supplied to limit operation to a subset of the working tree. See
"Interactive mode" for details.
交互式添加工作树中的内容到索引(暂存区)中。可选择的路径参数可能会应用到工作树子集的限制性操作中。具体查看“Interactive mode”。
-p, --patch
Interactively choose hunks of patch between the index and the work tree and add them to index. This gives user a chance to review the difference before adding modified
contents to the index.
能力有限,日后更新。
添加文件内容到索引(暂存区)。
Before running the commit command, you must use the add command to add new or modified files to the index.
在运行git commit命令之前,必须用git add命令将新的或者修改过的文件添加到索引(暂存区)。
Options:
-n,--dry-run
Don`t actually add the file(s), just show if they exist and/or will be ignored.
并不是真正的添加文件,只是显示它们是否存在或者被忽略。
-v, --verbose
Be verbose.
使用啰嗦模式执行命令。
-f, --force
Allow adding otherwise ignored files.
允许添加另外被忽略的文件。
-i, --interactive
Add modified contents in the working tree interactively to the index. Optional path arguments may be supplied to limit operation to a subset of the working tree. See
"Interactive mode" for details.
交互式添加工作树中的内容到索引(暂存区)中。可选择的路径参数可能会应用到工作树子集的限制性操作中。具体查看“Interactive mode”。
-p, --patch
Interactively choose hunks of patch between the index and the work tree and add them to index. This gives user a chance to review the difference before adding modified
contents to the index.
能力有限,日后更新。
相关文章推荐
- RPC failed; result=22, HTTP code = 411
- git更新已經刪除的文件
- 提取Git每次提交后Commit的文件
- GIT迁移服务器
- 分布式版本管理git入门指南使用资料汇总及文章推荐
- Git远程操作详解
- 25个 Git 进阶技巧(翻译)
- 详解版本控制利器Git,SVN的异同以及适用范围
- Ruby实现的删除已经合并的git分支脚本分享
- 在 Shell 提示符中显示 Git 分支名称的方法
- Git使用基础篇(一些常用命令和原理)
- git fork同步是什么意思?
- Python的高级Git库 Gittle
- 使用GIT进行源码管理――GUI客户端小结
- 使用git代替FTP部署代码到服务器的例子
- linux系统安装git及git常用命令
- 分享下自己总结的Git常用命令
- Git 常用命令速查表(图文+表格)
- mac git xcrun error active developer path 错误
- git报错