Sync repos across development environments. Bulk status|push|pull operations on git repos.
Author:Tim Santor firstname.lastname@example.org
Git-Lazy is a tool for lazy developers like me. I typically work on not only my work computer, but my home office computer or a laptop when I am on the go. Using Git-Lazy, I can easily search directories for Git repos and add them to a file which will be synced by Dropbox or Google Drive. Then, when I move to another machine mentioned above, I can simply run git-lazy --sync and my current development environment will create all the repos I need. It can also run bulk status|push|pull operations on all my git repos.
To install Git Lazy, simply:
pip install git-lazy
Then create a config file ^/config/git-lazy.cfg:
[default] ; Usernames for repos we're interesting in repo_users=tsantor,xstudios ; File to contain all repos we want to manage (preferably on a Cloud Drive) repo_list=^/Google Drive/Personal/repo_list.json ; The top-level directories we want to traverse to find repos search_dirs=^/Projects,^/Sandbox
git-lazy --find # find all repos git-lazy --sync # sync all repos git-lazy --add ^/repo/dir # Add a repo to the list git-lazy --remove ^/repo/dir # Remove a repo from the list git-lazy -m status # perform git status on all repos git-lazy -m pull # perform git pull on all repos git-lazy -m push # perform git push on all repos git-lazy --remove_interactive # Remove repos NOTE: For all available methods run ``git-lazy -h``
If you experience any issues, please create an issue on Bitbucket.
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- First release on PyPI.
- Do not attempt to do git operations on non-existent repos on current machine.
- Various enhancements
- Bug fix where using --find after already using it would only create a repo list of the newly found repos.
- Bug fix where using --find would add repos twice.
- Added --update_origins to update all repo urls from HTTPS to SSH
- Fixed bug with --find
- Fixed bug with --find when no origin set
- Update update_origins regex logic to handle https and ssh schemes
- Added repo_users to config (comma-delimited)
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, Size & Hash SHA256 Hash Help||File Type||Python Version||Upload Date|
(7.8 kB) Copy SHA256 Hash SHA256
|Wheel||py2.py3||Aug 7, 2017|
(7.2 kB) Copy SHA256 Hash SHA256
|Source||None||Aug 7, 2017|