Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/mecaneer23/git-grab
- Owner: mecaneer23
- Created: 2023-12-27T00:01:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-16T17:33:47.000Z (12 months ago)
- Last Synced: 2024-01-17T15:05:06.906Z (12 months ago)
- Topics: clone, curl, git, git-clone, git-grab, grab, wget
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```