git clone
, but without git
.
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.
wget --output-document ~/.local/bin/git-grab https://raw.githubusercontent.com/mecaneer23/git-grab/main/git-grab
curl -f https://raw.githubusercontent.com/mecaneer23/git-grab/main/git-grab -o ~/.local/bin/git-grab
Usage: git-grab [options] url [path]
# example
git-grab https://github.com/mecaneer23/git-grab
Currently, repositories from the following sites are supported.
Make sure to include the full url, such as https://github.com/mecaneer23/git-grab.
Option | Default | Description |
---|---|---|
--help, -h | N/A | show this help message and exit |
path
provides a way to use a custom repository name, other than the default.
Installing the git-grab
repository in a folder called grab
git-grab https://github.com/mecaneer23/git-grab grab