Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道可以忽略使用的目录或文件git diff,如此处git diff !(example)所示。
git diff
git diff !(example)
使用时可以这样git commit -v做吗?
git commit -v
只要它们在索引上,它们就会出现在 commit -v 消息中。
您可以将它们添加到 .gitignore (但我认为这不是您想要的),或者手动删除每次提交的不需要的注释。