开发者

GitHub clone failed with error message fatal: unable to access

In our company, a user is using a PAT of a generic ID to clone the repo. User is facing the issue when cloning the repo on a new machine and they stated this PAT is working until few days back (PAT is not expired). User tried below command and received below error (Error 1).

git clone https://user:pat@github.com/orgname/reponame.git
cloning into 'reponame'
fatal: unable to access 'https://github.com/orgname/reponame.git': The requested url returned error: 403

Then user create a new PAT with same permissions and they received below error on first attempt (Error 2) when they tried to clone with new PAT.

git clone https://user:pat@github.com/orgname/reponame.git
cloning into 'reponame'
remote: The 'orgname' organization has enabled or enforced SAML SSO. To access remote: this repository, visit 'https://github.com/enterprises/orgname/sso?authorization_REQUEST........
remote: and try your request again.

When user (user 1) opened that link and retry the clone, then it is working. But for one more user (user 2), this error 2 is not shown. It shows error 1.

  1. Why the error 2 is shown when a new PAT was use开发者_JS百科d to clone the issue?
  2. Why the user 1 is seeing the error 2 and user 2 is not seeing the same error?
  3. How this can be avoided when cloning on new machines?
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜