[root@localhost www]# git --version
git version 1.8.3.1
[root@localhost www]# git ls-files --exclude-standard
app/third_party/jqgrid/css/ellipsis-xbl.xml
app/third_party/jqgrid/css/ui.jqgrid.css
app/third_party/jqgrid/js/Changes.txt
[root@localhost www]# git ls-files --others
info/folder/2016-10-08/69.html
info/folder/2016-10-08/70.html
[root@localhost www]# git ls-files --others --exclude-standard
[root@localhost www]#
Затем я проверяю статус, как показано ниже:
[root@localhost www]# git status
# On branch develop
# Your branch is ahead of 'origin/develop' by 2 commits.
# (use "git push" to publish your local commits)
#
nothing to commit, working directory clean
Система имеет рабочий стол centos 7.6.
Давайте посмотрим на вывод git
выше.
У меня есть кое-что в git ls-files --exclude-standard
, и что-то в git ls-files --others
.
Тогда, я думаю, git ls-files --others --exclude-standard
выведет все файлы, которые не были отслежены, но вывод ничего.
В чем дело?