Skip to content

Latest commit

 

History

History
42 lines (24 loc) · 1.48 KB

File metadata and controls

42 lines (24 loc) · 1.48 KB

git-coco

git-coco is a plugin for git that makes it easier to work with AWS CodeCommit repositories.

Usage

To use git-coco, just make sure it's in your path somewhere (either by copying it to somewhere like /usr/local/bin or adding the git-coco folder into your PATH variable).

The following commands are added to git:

  • git coco ls

List all CodeCommit repositories.

  • git coco create <repo>

Creates a new repository in CodeCommit and outputs the clone url.

  • git coco clone <repo>

Clones the named repository from codecommit and configures it correctly for use with the CodeCommit git credential helper.

  • git coco rm <repo>

Removes the named repository from CodeCommit.

  • git coco init <repo>

Performs the equivalent of a git coco create followed by git coco clone. The result is a checked out copy of a new CodeCommit repository

  • git coco pr <from> <to>

Creates a pull request for the current repository that compares <from> (or the current branch if omitted) with <to> (or master if omitted).

  • git coco prlist <repo>

Lists all open pull requests for a specified repository. If repository is not specified, git-coco will search for a valid repository from git remote -v. Pull request information includes:

  • Pull Request ID
  • Pull Request Title
  • Pull Request Destination Branch
  • Pull Request Source Branch
  • Pull Request Author