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
© DeveWork.com 2018. sitemap  统计 Updated at 2020-02-25 18:40

results matching ""

    No results matching ""