Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nat-418/clonetrees
A helper script to clone git repositories for a worktree-centric workflow
https://github.com/nat-418/clonetrees
Last synced: 13 days ago
JSON representation
A helper script to clone git repositories for a worktree-centric workflow
- Host: GitHub
- URL: https://github.com/nat-418/clonetrees
- Owner: nat-418
- License: 0bsd
- Created: 2024-03-24T18:56:34.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-24T20:53:05.000Z (10 months ago)
- Last Synced: 2024-11-05T11:36:45.552Z (about 2 months ago)
- Language: Tcl
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# clonetrees 🌲🌲🌲
![Semver badge](https://flat.badgen.net/badge/semantic%20versioning/2.0.0/blue)
![CC badge](https://flat.badgen.net/badge/conventional%20commits/1.0.0/blue)A helper script to clone git repositories for a worktree-centric workflow.
# Usage
Just call the script and give a git origin URL and optionally local path.
```bash
$ clonetrees --help
clonetrees v0.0.1 - a git worktree setup helperUsage: clonetrees [...options] origin destination
Options:
-h, --help Show this help messageNote: If no destination is specified, the current directory will be used.
$ clonetrees [email protected]:nobody/example.git local-example
0: branch-a
1: branch-b
Enter the numbers of the branches you want to setup, separated by spaces:
> 1
Cloning into 'local-example/main'...
done.
Preparing worktree (new branch 'branch-b')
$ ls local-example
branch-b main
```# Installation
Requires git version 2.42 and Tcl version 8.6 or later.
Just download the script and mark it executable.
Or, use [the Nix package].[the Nix package]: https://github.com/nat-418/grimoire
## Miscellaneous
`clonetrees` is open source-software distributed under the 0BSD license.
To report bugs or view source code, see https://www.github.com/nat-418/clonetrees.