GitSnatch is a fast and user-friendly CLI tool built in Go to copy the content of one or multiple files from a GitHub repository directly to your clipboard.
- Fetch file contents from public/private GitHub repositories.
- Interactive file selection.
- Clipboard integration for convenience.
- Support for specific commit SHAs.
Set your GitHub token:
export GITHUB_TOKEN=your_token
Install GitSnatch:
git clone https://github.com/julilili42/GitSnatch.git
cd GitSnatch
./install.sh
Fetch repository files:
snatch [repoOwner] [repoName] [commitSHA]
Interactive fetch:
snatch
Requires a GitHub Personal Access Token with repo access: