Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.13 KB

readme.md

File metadata and controls

39 lines (27 loc) · 1.13 KB

gitman - Local Git repository manager

A CLI tool to keep local repositories in sync with their upstream.

Usage

Produce a production build of the program,

cargo build --release

Put 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.

Future Improvements

  • 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.