Skip to main content

Git remote prefix to simplify pushing to and pulling from CodeCommit using the CVM.

Project description

git-remote-cvm

This package provides a simple method for pushing and pulling from AWS CodeCommit using the CVM. This package extends git to support repository URLs prefixed with cvm://.

… you can clone repositories as simply as…

% git clone cvm://role-name@account-name/repository-name

The git-remote-cvm package works on Python versions:

  • 3.6.x and greater

  • 3.7.x and greater

Prerequisites

Before you can use git-remote-cvm, you must:

  • Complete initial configuration for AWS CodeCommit, including:

    • Install and configure the CVM

  • Create an AWS CodeCommit repository (or have one already) in your AWS account.

  • Install Python and its package manager, pip, if they are not already installed. To download and install the latest version of Python, visit the Python website.

  • Install Git on your Linux, macOS, Windows, or Unix computer.

  • Install the latest version of the AWS CLI on your Linux, macOS, Windows, or Unix computer. You can find instructions here.

Note: Installation of the AWS CLI on some operating systems requires pip version 9.0.3 or later. To check your version of pip, open a terminal and type the following command:

% pip --version

If the version is not 9.0.3 or later, run the following commands to update your version of pip:

% curl -O https://bootstrap.pypa.io/get-pip.py
% python3 get-pip.py --user

Set Up

Step 1: Install git-remote-cvm

  • On your Linux, macOS, Windows, or Unix computer, install git-remote-cvm using the pip command. For example:

% pip3 install git-remote-cvm
  • If you already have git-remote-cvm installed you can upgrade to the latest version with the –upgrade parameter:

% pip3 install --upgrade git-remote-cvm

Step 4: Clone your repository

  • At the terminal, run the git clone cvm command, using the details of your repository. For example:

% git clone cvm://power-user-role@dev-account/web-project-1
Cloning into 'web-project-1'...
remote: Counting objects: 1753, done.
Receiving objects: 100% (1753/1753), 351.77 KiB | 1.91 MiB/s, done.
Resolving deltas: 100% (986/986), done.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

git-remote-cvm-1.15.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

git_remote_cvm-1.15-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page