SCRABBLE(1)
NAME
scrabble — Simple tool to recover .git folder from remote server
SYNOPSIS
INFO
465 stars
111 forks
0 views
DESCRIPTION
Simple tool to recover .git folder from remote server
README
scrabble
A simple tool to recover Git repositories from exposed .git folders on remote servers.
Quick Start
Download the script:
curl -O https://raw.githubusercontent.com/denny0223/scrabble/refs/heads/master/scrabbleMake it executable:
chmod +x scrabbleRun the script:
./scrabble <url> [directory]
Usage
scrabble <url> [directory]
Arguments:
<url>: The full URL to the repository's.gitdirectory (e.g.,http://example.com/my-project.git/).[directory](Optional): The local directory to clone the repository into.- If not provided, the script defaults to a directory name derived from the URL (e.g.,
my-projectfromhttp://example.com/my-project.git/).
- If not provided, the script defaults to a directory name derived from the URL (e.g.,
Important Notes:
- You need to make sure the target URL has an exposed
.gitfolder. - The script will not overwrite an existing directory. If the target directory already exists, the script will exit with an error to prevent accidental data loss. Please remove the existing directory or choose a different name.
- This tool is designed to clone a repository into a new, empty directory. Do not run it inside an existing Git repository, as it will overwrite its contents.
Example
# Clone to a directory named 'my-project' scrabble http://example.com/my-project.git/Clone to a specific directory named 'my-local-repo'
scrabble http://example.com/my-project.git/ my-local-repo
SEE ALSO
fzf(1)— A command-line fuzzy finder — interactive Unix filter for any listlazygit(1)— Simple terminal UI for git commands — never memorize commands againstarship(1)— The minimal, blazing-fast, and infinitely customizable prompt for any shellgh(1)— GitHub's official command-line tool for pull requests, issues, and morezoxide(1)— A smarter cd command — learns your habits and jumps instantly
clihub3/4/2026SCRABBLE(1)