我在获取一个远程分支时遇到了问题。我可以看到,在bitbucket中,当我运行[remote "origin"]
url = https://gaurang.shah@bitbucket.abc.com/test.git
fetch = +refs/heads/*:refs/remotes/origin/*
命令
以下是git配置。 (我已用带虚拟值的URL替换)
git fetch release/fix_kerberos_retry_logic
Git命令
fatal: 'release/fix_kerberos_retry_logic' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
错误消息:
git clone -b branch_name repo_url
更新 我能够通过
克隆分支return response.status(401).json(validation.messages())
答案 0 :(得分:4)
git fetch
的第一个参数是要从中获取的遥控器的名称。
假设release/fix_kerberos_retry_logic
是origin
遥控器上存在的远程分支的名称,您的命令应为:
git fetch origin release/fix_kerberos_retry_logic