gpt4 book ai didi

git pull 返回警告 : remote port forwarding failed for listen port 52698

转载 作者:行者123 更新时间:2023-12-03 19:02:41 24 4
gpt4 key购买 nike

为什么,当我执行 git pull 时,我收到这个警告了吗(在 macos 上)?

Warning: remote port forwarding failed for listen port 52698


=== 编辑 ===
~ $ which git
/usr/local/bin/git
my-project $ git remote -v
origin git@gitlab.com:me/backend-api.git (fetch)
origin git@gitlab.com:me/backend-api.git (push)
~/.gitconfig :
[user]
name = Me
email = me@home.com
[core]
editor = vim
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[diff]
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[pull]
rebase = false
my-project/.git/config :
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = git@gitlab.com:me/backend-api.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[pull]
rebase = false

最佳答案

检查您的 ~/.ssh/config ,可能有 Host *Host github.comLocalForwardRemoteForward git 客户端在使用 ssh 访问 Github 时会尊重它。
在@DevonDahon 确认有 RemoteForward 52698 127.0.0.1:52698 时重新发布作为答案在那里。

关于git pull 返回警告 : remote port forwarding failed for listen port 52698,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64332287/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com