ソースツリーでクローン出来ない(Windows)

YM August 31, 2022

フォーク済みのリモートリポジトリをクローンしようとすると、「ソースパス/ソースURLとして正しくありません。」と毎回出てきてしまいます。

以下のサイトを参考にして、アプリパスワードを設定してみたのですが、それでも同じエラーが出てきます。

どのように対処したらよろしいでしょうか?

参考にしたサイト:https://support.atlassian.com/ja/bitbucket-cloud/docs/add-an-app-password-to-sourcetree-or-another-application/

 

 

コマンド: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://***@bitbucket.org/***
出力:
エラー: remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
remote: See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
remote: App passwords are recommended for most use cases and can be created in your Personal settings:
remote: https://bitbucket.org/account/settings/app-passwords/
fatal: Authentication failed for 'https://bitbucket.org/***'

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 1, 2022

G'day!

お客様が経験している認証に関する問題で最も多いのが、2022年3月1日に GIT ユーザー名/パスワードが廃止され App Passwords が採用されたことに起因したものとなっています。
https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231

HTTPS 経由で GIT と通信するためには、AppPassword を使用する必要があります。AppPassword の使い方については、以下のリンクにドキュメントがありますのでご参照ください。
https://support.atlassian.com/ja/bitbucket-cloud/docs/app-passwords/#Create-an-app-password

基本的に、HTTPS で接続する場合は、「:」で区切って、ユーザー名と共に AppPassword* を使います。

そのため、 HTTPS 経由で GIT (GIT over HTPS) に接続して push/pull を行うのであれば、リモート URL を AppPassword を含めたものに更新する必要があります。

git remote set-url origin https://USERNAME:APP_PASSWORD@bitbucket.org/workspaceID/reposlug.git

git clone を実行する際も同様です。

git clone https://USERNAME:APP_PASSWORD@bitbucket.org/workspaceID/reposlug.git

また、GIT での認証に関連するすべての保存済みのパスワードをマシンからクリアすることもお勧めします (Windows の場合 Credential Manager、Mac の場合 Access Keychain、Linux の場合 /etc/shadow フォルダーなど)。

Sourcetree を使用されていて、引き続き問題がある場合にはこちらをご参照ください。
https://community.atlassian.com/t5/Sourcetree-articles/Bug-Fix-Sourcetree-for-Windows-authentication-error-when/ba-p/1965968

お役に立てば光栄です。

Cheers!

  • Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events