git staged or untracked files
Git 的一些命令收集备份。
获取到 staged files:
git diff --name-only —cached // Show only names of changed files.
git diff —cached // Changes between the index and your last commit.
获取到 untracked files:
git ls-files --others --exclude-standard
git ls-files . --exclude-standard —others
获取到已经 modify 的文件列表:
git ls-files -m