패시브 스킬

<BitBucket> your credentials lack one or more required privilege scopes.

디벅잉 2023. 4. 8. 22:17
728x90

 

🧭

 

push 에러 발생

BitBucket으로 pull은 잘됐는데, push가 되지 않았습니다.

https? ssh? 

빗버킷과 로컬 환경을 연결하는 방법은 https와 ssh 2가지가 있습니다.

저는 https 방법으로 연결해 두었고, 'your credentials lack one or more required privilege scopes.'와 같은 에러가 발생하였습니다.

 

해결방법

https 연결 방법 유지(macOS 기준)

아래와 같은 코드를 입력하여 get-credential-magager-core를 설치합니다.

$ brew tap microsoft/git
$ brew install --cask git-credential-manager-core

이후 다시 push를 해보면 bitbucket 로그인을 유도하는 창이 나오고, 원하는 방법으로 로그인을 완료하면 됩니다.

 

ssh 연결 방법으로 변경

ssh로 변경하고자 하시는분은 아래 링크를 참고하시기 바랍니다.

 

📌

 

https://github.com/git-ecosystem/git-credential-manager/blob/release/docs/install.md

 

GitHub - git-ecosystem/git-credential-manager: Secure, cross-platform Git credential storage with authentication to GitHub, Azur

Secure, cross-platform Git credential storage with authentication to GitHub, Azure Repos, and other popular Git hosting services. - GitHub - git-ecosystem/git-credential-manager: Secure, cross-plat...

github.com

https://support.atlassian.com/bitbucket-cloud/docs/configure-ssh-and-two-step-verification/

 

Configure SSH and two-step verification | Bitbucket Cloud | Atlassian Support

Set up SSH in Bitbucket Cloud to reduce the risk of exposing your username and password.

support.atlassian.com

 

728x90