git add .失败解决办法
2015-05-28 22:34
288 查看
“git add”出错
近日使用“git add”出现如下错误:
$ 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 'inc/jquery2.1.1/jquery.min.js' 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.
使用“git status”查看状态:
$ git status On branch master Your branch is up-to-date with 'origin/master'. Changes to be committed: (use "git reset HEAD <file>..." to unstage) modified: app/js/app.js new file: app/tpl/admin.html new file: app/tpl/home.html new file: inc/jquery.2.1.1/jquery.min.js modified: index.html Changes not staged for commit: (use "git add/rm <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) deleted: inc/jquery2.1.1/jquery.min.js
解决方法很简单:
$ git add -A #或 git add -all
相关文章推荐
- 第三章第四十题
- Hadoop yarn配置
- iOS开发-retain/assign/strong/weak/copy/mutablecopy/autorelease区别
- android 代码混淆导致问题,快速定位
- datatable和datagridview传数据
- sgu237:Galaxy X: Episode I - Masters of Mind(字符串DP)
- 让UILabel的文字顶部对齐
- Oracle简介
- eclipse安装maven插件的步骤
- vs2010下配置pthread
- List::构造、复制构造、析构
- aidl ( 四) 各部分代码的执行进程和线程
- Android NDK开发指南---Application.mk文件和android.mk文件
- 数组的操作符重载
- Rake::TestTask 介绍
- 第二次冲刺(4)
- 智慧医疗项目启动前夜
- mysql外键指令总结
- 【HDU】5244 inverse【打表找规律——FFT】
- ice demo中关于#if compact #endif宏解释