首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何让Git默认"add --all“?

如何让Git默认"add --all“?
EN

Stack Overflow用户
提问于 2013-10-17 08:21:46
回答 1查看 3.9K关注 0票数 18

我刚刚收到了这样一条消息:

代码语言:javascript
复制
$ git add .
warning: You ran 'git add' with neither '-A (--all)' or '--ignore-removal',
whose behaviour will change in Git 2.0 with respect to paths you removed.
Paths like 'README.md' that are
removed from your working tree are ignored with this version of Git.

* 'git add --ignore-removal <pathspec>', which is the current default,
  ignores paths you removed from your working tree.

* 'git add --all <pathspec>' will let you also record the removals.

Run 'git status' to check the paths you removed from your working tree.

我认为设置--all是一个非常明智的默认设置,因为如果意外添加了某些内容,我可以使用reset。如何将该行为设为默认值?

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19416195

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档