I get it. Its not easy to manage all of the repos you're working on. Now you can with this simple CLI tool to manage and organize your git projects in a consistent directory structure.
You're a pro. Get pro level repo management with prj.
go install github.com/chandlerroth/current-projects/cmd/prj@latest- Initialize your projects directory:
prj initThis creates a ~/Projects directory and a .current-projects file.
- Add new repos (with auto cloning):
prj add git@github.com:username/repo.git- Check git status of all projects:
prj statusprj init- Initialize the projects directory and configurationprj add [repo]- Add a repository to projects and install itprj install- Install/clone all projects from .current-projects fileprj status- Show git status for all tracked projects
When running prj status, you'll see various indicators:
[↓]- Number of commits behind remote[↑]- Number of commits ahead of remote[N changes]- Number of modified files[✓ clean]- Repository is clean with no changes
Example output:
1 chandlerroth/current-projects git:(main) [✓ clean]
Projects are organized in the following structure:
~/Projects/username/repo
The .current-projects file in your Projects directory maintains the list of repositories to track. You can sync this to a gist.