

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 疑難排解
<a name="codecatalyst-troubleshoot"></a>

以下是使用 AWS Toolkit for Visual Studio 搭配 Amazon Q 來處理 Amazon CodeCatalyst 時已知問題的疑難排解主題。

**Topics**
+ [

## 憑證
](#codecatalyst-troubleshoot-credentials)

## 憑證
<a name="codecatalyst-troubleshoot-credentials"></a>

如果您在嘗試從 CodeCatalyst 複製 git 型儲存庫時遇到要求登入資料的對話方塊，您的 **AWS CodeCommit 登入資料協助程式**可能會全域設定，進而干擾 CodeCatalyst。如需 AWS CodeCommit 登入資料協助程式的詳細資訊，請參閱《[AWS CodeCommit 使用者指南》中的在 Windows 上使用 AWS CLI 登入資料協助程式設定 HTTPS 連線的 CodeCommit 儲存庫步驟](https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-https-windows.html)一節。 *AWS CodeCommit* 

若要限制 **AWS CodeCommit 登入資料協助程式**僅處理 CodeCommit URLs，請完成下列步驟。

1. 在 中開啟全域 git 組態檔案： `%userprofile%\.gitconfig`

1. 在 檔案中找到下列區段：

   ```
                           [credential]
                               helper = !aws codecommit credential-helper $@
                               UseHttpPath = true
   ```

1. 將該區段變更為以下內容：

   ```
                           [credential "https://git-codecommit.*.amazonaws.com"]
                               helper = !aws codecommit credential-helper $@
                               UseHttpPath = true
   ```

1. 儲存變更，然後完成複製儲存庫的步驟。