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 拉取的本地工作目录存储库中的内容不同。
为什么?
在 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 拉取的本地工作目录存储库中的内容不同。
为什么?