git-goclone

command module
v1.4.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 9 Imported by: 0

README

git go-clone

Coverage CodeQL golangci-lint

This is fancy wrapper around git clone that preserves directory structures.

For example, if you have some complex organization, and you want to clone the repository github.com/someorg/foo/bar/baz/project.git, it will create the directory structure based on the url path.

I used to use a shell script version of this, but rewrote it in Go to make it more robust.

Installation

To install this, use the following command:

    go install github.com/mojotx/git-goclone@latest

Usage

Once the utility is installed, you can use it by giving one or more Git URIs on a command-line.

For example:

    $ git goclone https://github.com/mojotx/git-goclone.git
    processing https://github.com/mojotx/git-goclone.git...
    Cloning repo https://github.com/mojotx/git-goclone.git into mojotx/git-goclone...
    Enumerating objects: 28, done.
    Counting objects: 100% (28/28), done.
    Compressing objects: 100% (19/19), done.
    Total 28 (delta 7), reused 28 (delta 7), pack-reused 0

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL