https://github.com/devkcud/syncrepos
a wrapper for gh repo sync but syncs determined repos all at once
https://github.com/devkcud/syncrepos
Last synced: 9 months ago
JSON representation
a wrapper for gh repo sync but syncs determined repos all at once
- Host: GitHub
- URL: https://github.com/devkcud/syncrepos
- Owner: devkcud
- Created: 2024-07-24T03:19:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-24T04:01:36.000Z (over 1 year ago)
- Last Synced: 2025-04-28T19:59:35.815Z (11 months ago)
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# syncrepos
A simple wrapper for `gh repo sync` to sync multiple repositories simultaneously, since the `gh` command cannot sync more than one repository at once.
## build
To build:
```bash
make build
```
To install:
```bash
make install
```
To do both:
```bash
make
```
The default behaviour of `make` is to build and install (copy into `~/.local/bin` as `sr`)
## usage
```bash
sr devkcud/syncrepos ...
# will add the devkcud/syncrepos repo to the repo list in $HOME/.config/.syncrepos
```
```bash
sr -s
# will sync the repos found in the $HOME/.config/.syncrepos
# To force the sync command, just place the -f flag
#
# Like this: sr -sf or sf -s -f
#
# This won't force anything in the syncrepos script, it's just a way to pass in the --force to gh repo sync command
```
You can modify where the repos file is located using:
```bash
sr -r "/home/pato/.config/.syncrepos"
```
> If you want to create the file if it doesn't exist use `sr -c -r "/home/pato/.config/.syncrepos"`
You can just place all the args together:
```bash
sr -tqsfcr .sync devkcud/syncrepos
```
For more info view:
```bash
sr -h
```
> You can disable ALL output using the `-q` flag, keep in mind that even errors won't show up