title: AWS CodeCommit Error: git: 'credential-aws' is not a git command
body: <p>I am new to <a href="https://aws.amazon.com/" rel="nofollow noreferrer">Amazon Web Services</a> world, and I am implementing <a href="https://aws.amazon.com/getting-started/projects/set-up-ci-cd-pipeline/" rel="nofollow noreferrer">Continuous Delivery</a> to the company I work for.</p>
  <p>I followed AWS's [instructions to configure CodeCommit Service] (<a href="http://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-https-windows.html#setting-up-https-windows-account" rel="nofollow noreferrer">http://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-https-windows.html#setting-up-https-windows-account</a>)</p>
  <p><b>Step 1: Initial Configuration for <a href="https://aws.amazon.com/codecommit/" rel="nofollow noreferrer">AWS CodeCommit</a></b></p>
  <p><i>To create and configure an <a href="https://aws.amazon.com/iam/" rel="nofollow noreferrer">IAM user</a> for accessing <a href="https://aws.amazon.com/codecommit/" rel="nofollow noreferrer">AWS CodeCommit</a></i>:
  I created a new IAM user and gave him <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html" rel="nofollow noreferrer">AWSCodeCommitFullAccess</a></p>
  <p><i> To install and configure the AWS CLI </i>:</p>
  <p>I installed and configured the credentials doing <a href="https://aws.amazon.com/config/#:%7E:text=AWS%20Config%20is%20a%20service,recorded%20configurations%20against%20desired%20configurations." rel="nofollow noreferrer"><em>aws configure</em></a>.
  Setting AWS Access Key ID, AWS Secret Access Key, Default region name to <code>us-east-1</code> and <code>de</code></p>
  <p><b> Step 2: Install Git </b>
  I installed <a href="https://git-scm.com/downloads" rel="nofollow noreferrer">Git For Windows</a> making sure the Enable Git Credential Manager option was cleared.</p>
  <p><b> Step 3: Set Up the Credential Helper </b></p>
  <pre><code>git config --global credential.helper &quot;!aws codecommit credential-helper $@&quot;
  git config --global credential.UseHttpPath true
  </code></pre>
  <p>Executing:</p>
  <pre><code>git config --global --edit
  </code></pre>
  <p>My Configuration is:</p>
  <pre><code>[http]
    sslVerify = false
  [credential]&lt;br&gt; 
    helper = &quot;aws codecommit list-repositories codecommit credential-helper &quot;
    UseHttpPath = true
  </code></pre>
  <p><strong>Step 4: Connect to the <a href="https://aws.amazon.com/codecommit/" rel="nofollow noreferrer">AWS CodeCommit</a> Console and Clone the Repository</strong></p>
  <pre><code>    $ git clone https://git-codecommit.us-east-1.amazonaws.com/v1/repos/teste-git-to-s3&lt;br&gt;
      Cloning into 'teste-git-to-s3'...&lt;br&gt;
      git: 'credential-aws' is not a git command. See 'git --help'.&lt;br&gt;
      Username for 'https://git-codecommit.us-east-1.amazonaws.com/v1/repos/teste-git-to-s3': Lucas&lt;br&gt;
      fatal: unable to access 'https://git-codecommit.us-east-1.amazonaws.com/v1/repos/teste-git-to-s3/': The requested URL returned error: 403
  </code></pre>
  <p>Looking for AWS troubleshooting, I found: <a href="http://docs.aws.amazon.com/codecommit/latest/userguide/troubleshooting.html#troubleshooting-ae1" rel="nofollow noreferrer">Troubleshooting AWS CodeCommit</a> but I couldn't solve it.</p>
  <p>How can this be solved?</p>