[英]Gitlab SSH https different content
In d/POUB
: git pull
by ssh在
d/POUB
:通过 ssh git pull
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
In d/git
: git pull
by https for the same Gitlab repo ( https://gitlab.com/moueza/genealogy ) :在
d/git
: git pull
by https for the same Gitlab repo ( 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
As you can see, the content is not the same in local working directory repository pulled by SSH vs by HTTPS.如您所见,SSH 与 HTTPS 拉取的本地工作目录存储库中的内容并不相同。
Why ?为什么 ?
A git pull
is not the same as a git clone
: if they are additional untracked files in an existing local repository (where you pull), said files won't be impacted and will remain in place. git pull
与git clone
:如果它们是现有本地存储库(您拉取的位置)中的其他未跟踪文件,则所述文件不会受到影响并将保留在原地。
Do a git status
to check if said untracked files exist.执行
git status
以检查所述未跟踪的文件是否存在。
Try and clone your repository with an HTTPS URL in a new empty local folder: its content should be the same this time.尝试在一个新的空本地文件夹中使用 HTTPS URL 克隆您的存储库:这次它的内容应该是相同的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.