A CLI tool to keep local repositories in sync with their upstream.
Produce a production build of the program,
cargo build --releasePut the output executable (gitman.exe in case of Windows) to a convenient location and add it to PATH. For example, In
c:\apps in Windows or ~/bin in Linux.
Then from any directory run,
gitman -d <root_of_local_repos>or from the root of your local repos collection, run,
gitman -d .gitman will traverse all directories from the starting directory recursively with a DFS approach and update it if
possible.
- Concurrency Management: Implement bounded parallel execution using a thread-pooling strategy to optimize synchronization time across large repository sets while maintaining network stability.
- Resilience: Add automated retry logic for interrupted network requests and granular error reporting for partial sync failures.
- State Tracking: Integrate a local database (e.g., SQLite) to track last-sync timestamps and skip repos that haven't had upstream changes.