Gitkeep, the little Rust tool I originally wrote to keep a local copy of a coupl...
Quin @TheQuinbox@dragonscave.space
Gitkeep, the little Rust tool I originally wrote to keep a local copy of a couple GitHub profiles, is now at version 0.4.0, including support for gitea, forgejo, and GitLab, and many other things. Complete changelog, by version, since I last posted about it here:
0.4.0- Added a per-host SSH setting. The first time you add something from a new host, gitkeep asks whether to clone from it over SSH; set
use_sshunder that host in the config to change it later - Fixed a repo with no clone URL of the chosen kind being silently skipped. It's now reported as a failure
gitkeep sizenow shows just the total by default. Pass--breakdownto also list each account's size.- Repos are now cloned and pulled, and account listings fetched, several at a time (one per CPU thread, between 4 and 16), which makes big syncs several times faster. Change it with
gitkeep sync -j <N>orjobs = <N>in the config
- A relative archive directory in the config is now relative to your home directory instead of wherever gitkeep is run from
- Fixed
gitkeep remove user/reponot offering to delete the local copy of an individually tracked repo - Fixed the unauthenticated mode warning being printed more than once per command
gitkeep addnow prints one combined summary when adding accounts and individual repos togethergitkeep remove <owner>no longer asks before untracking the repos you track individually under it, only before deleting themgitkeep removenow also removes the owner, group, and host directories that deleting the last repo under them leaves empty
- A failed clone or pull now shows git's own error message
addandremovenow acceptuser/a,b,cto name several repos from one owner- Added Forgejo support, which also covers Gitea and Codeberg. Repos are added by URL, the same way as GitLab
- Added GitLab support:
gitkeep add <url>tracks a group (including subgroups), users, or single projects on any GitLab instance. GitLab archives live under<host>/<namespace>/<project>;remove,sync, andlistaccept the host-qualifiedhost/namespace/projectform or the full URL - Added per-host tokens in the config for accessing private GitLab and Forgejo repos
- Fixed an archive directory starting with
~being created as a folder literally named~in the current directory instead of under your home directory gitkeep initnow saves a relative archive directory as an absolute path, so the archive no longer depends on where gitkeep is run fromgitkeep sync <targets>now syncs only the named accounts and repos, including frozen ones- Removed
gitkeep skip,unskip, andprune. Rungitkeep remove user/repoto leave a repo under a tracked account out of future syncs (with--deleteto also delete its local copy), andgitkeep add user/repoto bring it back. Existing skipped repos carry over automatically
Get it with cargo install gitkeep or at https://github.com/trypsynth/gitkeep/releases/latest