株式会社オートプロジェクト

Columnコラム
2024年3月13日
Sourcetreeで新しくCloneするときの注意点

Sourcetreeを使用し、アカウント設定でGitHubアカウントを登録後にCloneを行おうとしてもできないエラーが発生しました。

エラー内容は下記になります。

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for ‘https://github.com/xxx/xxxx.git/’

自分自身のアカウント登録はOAuth認証で、パスワード認証ではないためこのエラーにならないはず。GoogleやChatGPTで調べても回答がない…

結局、自分でいろいろ触ってわかったのですが、下記の画像のようにメニューの「URLからクローン」を選択した場合は、

エラーになり、下記画像の「リモート」から選択すれば、正常にクローンできることがわかりました。

「URLからクローン」からCloneをしようとすると、ハマる場合がありますのでご注意ください。