https://github.com/denny0223/scrabble
Simple tool to recover .git folder from remote server
https://github.com/denny0223/scrabble
git scrabble shell
Last synced: 2 months ago
JSON representation
Simple tool to recover .git folder from remote server
- Host: GitHub
- URL: https://github.com/denny0223/scrabble
- Owner: denny0223
- License: mit
- Created: 2014-09-16T20:00:20.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-09T17:36:37.000Z (about 11 years ago)
- Last Synced: 2024-05-15T13:41:47.749Z (over 1 year ago)
- Topics: git, scrabble, shell
- Language: Shell
- Homepage:
- Size: 158 KB
- Stars: 396
- Watchers: 7
- Forks: 104
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# scrabble
A simple tool to recover Git repositories from exposed `.git` folders on remote servers.
## Quick Start
1. **Download the script:**
```bash
curl -O https://raw.githubusercontent.com/denny0223/scrabble/refs/heads/master/scrabble
```2. **Make it executable:**
```bash
chmod +x scrabble
```3. **Run the script:**
```bash
./scrabble [directory]
```## Usage
`scrabble [directory]`
### Arguments:
* ``: The full URL to the repository's `.git` directory (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-project` from `http://example.com/my-project.git/`).### Important Notes:
* You need to make sure the target URL has an exposed `.git` folder.
* 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
```bash
# 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
```