Skip to content

Instantly share code, notes, and snippets.

@maxwellb
Last active March 20, 2026 22:08
Show Gist options
  • Select an option

  • Save maxwellb/6bffcf3b6fea552399c595962509169e to your computer and use it in GitHub Desktop.

Select an option

Save maxwellb/6bffcf3b6fea552399c595962509169e to your computer and use it in GitHub Desktop.

Changelog and TODO

  • Updated
  • Publish Gist
  • Gist linked from and published to https://auto-clone.sh/
  • Add readme.md with screenshots and usage, probably add copyright/attribution
  • Detect and clone repos from GitLab
  • Detect and clone repos from Bitbucket
  • Detect and clone repos from Codeberg

auto-clone.sh

Clone repos when they appear in the system clipboard!

Jump to main content

Usage

Run auto-clone.sh from a root folder you would like to put repos under.

In Windows, I do this from my quake-con Terminal hidden mostly behind the key combo Win+~.

As you browse about, when a GitHub repo URL shows up in your clipboard, the script pastes, and clones!

Bonus Features

Self-test mode! (for the author)

./auto-run.sh --self-test

Check a case, fix the test, push the Gist.

View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment