Skip to content
/ cgit Public

`cgit` wraps `git clone` for organizing project folders in a reverse domain-like structure.

Notifications You must be signed in to change notification settings

eunier/cgit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cgit

cgit is a utility that acts as a wrapper around git clone, allowing you to organize project folders in a reverse domain-like structure.

Usage

Assuming you have a repository at https://gitsite.com/username/repo-name.git, you can use cgit as follows:

cgit https://gitsite.com/username/repo-name.git

This command is equivalent to:

git \
clone \
https://gitsite.com/username/repo-name.git \
com.gitsite.username.repo-name/repo_name

The format of th above commands is as follows:

git \
clone \
<repo url> \
<repo reverse domain folder>/<repo name>

cgit is also compatible with repositories in the format: [email protected]:username/repo-name.git.

Installation

To use cgit, follow these steps:

  1. Install Rust.

  2. Globally install the cargo-run-script Rust crate:

    cargo install cargo-run-script
  3. This will install the cgit executable globally in the /usr/local/bin directory:

    cargo run-script install
  4. After installation, cgit should be available in a new terminal session.

About

`cgit` wraps `git clone` for organizing project folders in a reverse domain-like structure.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages