Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

AFAIK mr does not need much config, mostly just running `mr register` after `git clone`. When you do need to set config, the `mr config` command can help. All that said, I do have a lot of custom config :)

There is a `mr bootstrap` command for pulling a repo with a .mrconfig file in it, and then pulling a bunch of repos from there, here is an example usage:

https://wiki.debian.org/DebianInstaller/CheckOut

mr does have bare repo support, I haven't tried git multi-worktree stuff before though. I guess you would have to manually register each worktree.



I guess what I want is a tool (not necessarily mr) that I point to a GitHub/Bitbucket/Gitlab project and it creates/updates the .mrconfig with all repos from the project.


I guess I would generate mr config commands using the output of gh/glab repo list and run them in shell:

gh repo list --json url,name -q '.[] | "mr --config .mrconfig config " + .name + " " + .url' | sh

You could probably do it with xargs or similar too.


It might be worth including such a tool into mr itself, by wrapping the official CLI tools gh/glab/etc. You could access it via `mr bootstrap github:@foo` perhaps.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: