hanges not staged for commit: (use “git add <file>...“ to update what will be committed)

  (use "git restore --staged <file>..." to unstage)
	new file:   app/controller/cascade.ts
	new file:   app/model/cascade.ts
	new file:   app/router/cascade.ts
	new file:   app/service/cascade.ts
	new file:   app/validate/cascade.ts

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   app/router/index.ts
	modified:   config/config.prod.ts

当我们提交代码时, git stash pop 之后,总有几个顽固的文件

拿不出来。不要着急。

依次执行命令:

git add . 

git status

这时候文件就变成绿色了,就可以提交了
如图:

 


版权声明:本文为WJLcomeon原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。