Skip to content

A lightweight CLI tool written in Go that allows users to copy the code of one or multiple files from a given GitHub repository.

License

Notifications You must be signed in to change notification settings

julilili42/GitSnatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitSnatch

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.

Features

  • Fetch file contents from public/private GitHub repositories.
  • Interactive file selection.
  • Clipboard integration for convenience.
  • Support for specific commit SHAs.

Installation

Set your GitHub token:

export GITHUB_TOKEN=your_token

Install GitSnatch:

git clone https://github.com/julilili42/GitSnatch.git
cd GitSnatch
./install.sh

Usage

Fetch repository files:

snatch [repoOwner] [repoName] [commitSHA]

Interactive fetch:

snatch

Example

output

Configuration

Requires a GitHub Personal Access Token with repo access:

Generate Token

Dependencies

About

A lightweight CLI tool written in Go that allows users to copy the code of one or multiple files from a given GitHub repository.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published