Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

ghclone

A Bash script to clone Git repositories into a structured hierarchical directory tree based on the repository URL.

Features

  • Structured Layout: Clones repositories into ~/git/<host>/<owner>/<repo>.
  • Fast Start: Performs an initial shallow clone (--depth 1) for immediate access.
  • Background Recovery: Automatically triggers a background process to fetch full history (unshallow) without blocking the user.
  • Idempotency: Skips cloning if the destination directory already exists.

Installation

cp git-structured-clone.sh ~/.local/bin/git-structured-clone
chmod +x ~/.local/bin/git-structured-clone

Usage

git-structured-clone <repository-url>

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages