最近查看 git-add 的手册,遇到下面的两个选项,有点搞不明白
-N, --intent-to-add
Record only the fact that the path will be added later. An entry for the path is placed in
the index with no content. This is useful for, among other things, showing the unstaged
content of such files with git diff and committing them with git commit -a.
--refresh
Don't add the file(s), but only refresh their stat() information in the index.
请问这两个选项的使用场景在哪里呢