gigit

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Gigit the repository downloader

Gigit is inspired by degit a repository downloader written by Rich Harris in JavaScript. Gigit has almost the same features as degit. Downloading repositories, caching features, and some still in development.

## Simple usage example:

gigit <user>/<repo>

In the example above, gigit will download the GitHub respository with the username <user> and the repository that has the name <repo>.

## Spesific branch, commit hash, tag

You can use specific branches, commits, or tags with a `#`

gigit user/repo#dev
gigit user/repo#691c0bf

// on spesific tag, "v" is required
gigit user/repo#v1.0.0

## Subdirectory

Download sub directory only of a repository.

gigit user/repo/dir

gigit nazhard/gigit/cmd/gigit

## Commands

Clone instead of download. With cloning, you will get a .git folder

gigit clone user/repo

// Clone with `--depth=1` if you just want to fix typo
gigit c1 user/repo
// or
gigit 1 user/repo

Jump to

Keyboard shortcuts

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