首页 > 技术文章 > git强制添加 add文件

anliex 2020-06-17 17:31 原文

首先是idea新建文件没办法使用git操作add

hint: Use -f if you really want to add them.
hint: Turn this message off by running
hint: "git config advice.addIgnoredFile false"

然后就是

git -f add Demo.java

ok

推荐阅读