git 版本:2.34.1
当我从远程仓库中拉取时,git 过去常常用文件路径和 + - 符号显示哪个文件以及修改了多少。然而,由于一段时间,它不再显示细节。
git pull origin main
remote: Enumerating objects: 47, done.
remote: Counting objects: 100% (47/47), done.
remote: Compressing objects: 100% (38/38), done.
remote: Total 43 (delta 21), reused 9 (delta 3), pack-reused 0
Unpacking objects: 100% (43/43), 7.59 KiB | 129.00 KiB/s, done.
From github.com:thebjko/algorithm
* branch main -> FETCH_HEAD
7e29d04..9df6a2e main -> origin/main
Successfully rebased and updated refs/heads/main.
拉取成功时看到的就这些
假设它与配置有关,我试图查找要更改的配置。
git config --list
core.quotepath=false
core.editor=vim
pull.rebase=true # global
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
[email protected]:thebjko/algorithm.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.main.remote=origin
branch.main.merge=refs/heads/main
pull.rebase=true # local
但我没有看到任何可疑的东西。
此外,我尝试搜索,但我发现的都是关于本地存储库根本没有更新的情况。
为什么 git 以这种方式运行,我怎样才能让它再次显示拉取细节?
将
pull.rebase
(本地)更改为false
对我有用。