![](/img/trans.png)
[英]Is there a way to pull changes from a remote Gitlab repo to a local copy using Git Gui?
[英]Git pull does not update local repo (from GitLab)
在嘗試從遠程 GitLab 存儲庫中提取時,我得到:
$ git pull origin master
From ######
* branch master -> FETCH_HEAD
Already up to date.
但是檢查本地和遠程倉庫顯然有區別。 為什么會發生這種情況,我如何更新到本地存儲庫以表示遠程存儲庫上的內容?
附加信息,如果我執行git status
,我會得到以下信息:
$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: ######.py
no changes added to commit (use "git add" and/or "git commit -a")
並且做git diff
向我展示了一長串差異。
修改后的文件不會在您的本地存儲庫中跟蹤。 您需要git add ######.py
就像消息 output 說的那樣。
更多信息可以在這里找到git 添加
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.