Gitlab SSH https 不同的内容

Gitlab SSH https different content

d/POUB 中:git pull 通过 ssh

seeqlee@LAPTOP-N74Q07QC MINGW64 /d/POUB/genealogy (master)
 $ git remote --v
 origin  git@gitlab.com:moueza/genealogy.git (fetch)
 origin  git@gitlab.com:moueza/genealogy.git (push)

 seeqlee@LAPTOP-N74Q07QC MINGW64 /d/POUB/genealogy (master)
 $ ls
 ADC_MOUEZA300919.pdf                          moueza_janvrillette.PNG
 ADC_MOUEZA300919_fromAdobeReader.txt          README.md
 ADC_MOUEZA300919_fromGoogleDriveDocument.txt

 seeqlee@LAPTOP-N74Q07QC MINGW64 /d/POUB/genealogy (master)
 $ ls
 ADC_MOUEZA300919.pdf                          moueza_janvrillette.PNG
 ADC_MOUEZA300919_fromAdobeReader.txt          README.md
 ADC_MOUEZA300919_fromGoogleDriveDocument.txt

 seeqlee@LAPTOP-N74Q07QC MINGW64 /d/POUB/genealogy (master)
 $ git remote --v
 origin  git@gitlab.com:moueza/genealogy.git (fetch)
 origin  git@gitlab.com:moueza/genealogy.git (push)

 seeqlee@LAPTOP-N74Q07QC MINGW64 /d/POUB/genealogy (master)
 $ git pull
 Already up to date.

seeqlee@LAPTOP-N74Q07QC MINGW64 /d/POUB/genealogy (master)
$ ls
ADC_MOUEZA300919.pdf                          moueza_janvrillette.PNG
ADC_MOUEZA300919_fromAdobeReader.txt          README.md
ADC_MOUEZA300919_fromGoogleDriveDocument.txt

d/git 中:git pull 通过 https 获取相同的 Gitlab 存储库 (https://gitlab.com/moueza/genealogy) :

seeqlee@LAPTOP-N74Q07QC MINGW64 /d/git/genealogy (master)
$ git remote --v
origin  https://gitlab.com/moueza/genealogy.git (fetch)
origin  https://gitlab.com/moueza/genealogy.git (push)

seeqlee@LAPTOP-N74Q07QC MINGW64 /d/git/genealogy (master)
$ ls
ADC_MOUEZA300919.pdf
ADC_MOUEZA300919_fromAdobeReader.txt
ADC_MOUEZA300919_fromGoogleDriveDocument.txt
moueza_janvrillette.PNG
pom.xml
README.md
src/
target/
TraitementDeLaGrammaireFichierText.java

如您所见,SSH 与 HTTPS 拉取的本地工作目录存储库中的内容不同。
为什么?

A git pull is not the same as a git clone:如果它们是现有本地存储库(您拉取的位置)中的其他未跟踪文件,则所述文件不会受到影响并将保留在原处。

执行 git status 检查是否存在上述未跟踪文件。

尝试在一个新的空本地文件夹中使用 HTTPS URL 克隆您的存储库:这次它的内容应该是相同的。