Git Remote CodeCommit

1.17 · active · verified Sun Apr 12

git-remote-codecommit is a Git remote helper that simplifies interaction with AWS CodeCommit repositories by enabling a `codecommit://` URL prefix. It leverages existing AWS CLI credential profiles for authentication, supporting features like multiple AWS accounts and temporary credentials without caching them in the operating system's credential store. This tool is the recommended approach for connecting to CodeCommit with federated access or IAM roles. The current version is 1.17, with irregular but ongoing releases indicating active maintenance.

Warnings

Install

Imports

Quickstart

The quickstart demonstrates installing `git-remote-codecommit`, configuring an AWS CLI profile (which `git-remote-codecommit` relies on for authentication), and then cloning a CodeCommit repository using the special `codecommit://` URL format. Subsequent Git operations (pull, push, commit) then work seamlessly.

# 1. Ensure AWS CLI is installed and configured (e.g., 'aws configure')
# For specific profiles:
aws configure --profile my-codecommit-profile

# 2. Clone a CodeCommit repository using the 'codecommit://' protocol
# Syntax: git clone codecommit::[region]://[profile@]repository-name

# Example with default profile (configured in ~/.aws/credentials)
git clone codecommit://MyDemoRepo

# Example with a named profile and specific region
git clone codecommit::us-east-1://my-codecommit-profile@MyAnotherRepo

# After cloning, standard git pull/push commands work as usual
cd MyDemoRepo
git pull origin main
echo "Hello from CodeCommit!" > README.md
git add README.md
git commit -m "Add README"
git push origin main

view raw JSON →