git ls-files
无法实现此功能,因此我想到了以下方法:
git ls-files; git status --porcelain | grep ^?? | cut -d' ' -f2
但是我想知道是否有Git原生命令可以实现此功能以使其更易移植?
git ls-files
无法实现此功能,因此我想到了以下方法:
git ls-files; git status --porcelain | grep ^?? | cut -d' ' -f2
但是我想知道是否有Git原生命令可以实现此功能以使其更易移植?
git clean -nd
不会打印一个简单的列表。 - Bohrgit ls-files
。 - VonC