Skip to content

domano/gitloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Repository Content Downloader

Downloads GitHub repository contents into a single text file, skipping build artifacts and system files. Perfect for creating context files for AI assistants.

Features

  • Downloads all source files from a GitHub repository
  • Skips common build artifacts, dependencies, and system files
  • Preserves file paths in the output
  • Uses go-git for authentication and private repos

Installation and Usage

Option 1: Direct Install

go install github.com/domano/gitloader@latest
gitloader github.com/domano/gitloader # Will check out this repo into one file

Option 2: From Source

git clone https://github.com/domano/gitloader
cd reponame
go mod init github-content
go get github.com/go-git/go-git/v5
go install
gitloader github.com/domano/gitloader # Will check out this repo into one file

or just run

go run main.go https://github.com/user/repo

after checkout

Output will be saved as user-repo.txt in the current directory.

Skipped Content

  • Hidden files/directories (starting with .)
  • Build directories (dist, build)
  • Dependencies (node_modules, vendor)
  • Lock files (package-lock.json, go.sum, etc.)

Authentication

Uses your system's Git credentials for private repositories.

About

Get all context from a git repo for AI assistants.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages