Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mecaneer23/git-grab

git clone, but without git.
https://github.com/mecaneer23/git-grab

clone curl git git-clone git-grab grab wget

Last synced: about 2 months ago
JSON representation

git clone, but without git.

Awesome Lists containing this project

README

        

# Git Grab

`git clone`, but without `git`.

## Contents

- [Git Grab](#git-grab)
- [Contents](#contents)
- [What is Git Grab?](#what-is-git-grab)
- [Installing](#installing)
- [With `wget`](#with-wget)
- [With `curl`](#with-curl)
- [Running](#running)
- [What can `url` be?](#what-can-url-be)
- [Options](#options)
- [Path](#path)

## What is Git Grab?

`git-grab` emulates `git clone`, grabbing all of the files from a provided git repository. However, it ignores all git history and doesn't grab the git files.

## Installing

### With `wget`

```bash
wget --output-document ~/.local/bin/git-grab https://raw.githubusercontent.com/mecaneer23/git-grab/main/git-grab
```

### With `curl`

```bash
curl -f https://raw.githubusercontent.com/mecaneer23/git-grab/main/git-grab -o ~/.local/bin/git-grab
```

## Running

Usage: `git-grab [options] url [path]`

```bash
# example
git-grab https://github.com/mecaneer23/git-grab
```

### What can `url` be?

Currently, repositories from the following sites are supported.

- [github.com](https://github.com)

Make sure to include the full url, such as [https://github.com/mecaneer23/git-grab](https://github.com/mecaneer23/git-grab).

### Options

| Option | Default | Description |
| ---------- | ------- | ------------------------------- |
| --help, -h | N/A | show this help message and exit |

### Path

`path` provides a way to use a custom repository name, other than the default.

Installing the `git-grab` repository in a folder called `grab`

```bash
git-grab https://github.com/mecaneer23/git-grab grab
```