https://github.com/suddengunter/updater
Simple app that runs git fetch && git pull for all subdirectories
https://github.com/suddengunter/updater
Last synced: over 1 year ago
JSON representation
Simple app that runs git fetch && git pull for all subdirectories
- Host: GitHub
- URL: https://github.com/suddengunter/updater
- Owner: SuddenGunter
- Created: 2022-11-09T23:42:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-09T23:47:44.000Z (over 3 years ago)
- Last Synced: 2025-01-23T13:13:52.282Z (over 1 year ago)
- Language: Go
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# updater
Simple app that runs `git checkout main && git fetch && git pull --ff-only` in all subdirectories of the current directory.
I could have used a shell script, but it was easier to write it in Go.
## Installation
```sh
go install github.com/SuddenGunter/updater@v0.1.0
```
## Usage
```sh
$ updater
2022/11/10 01:38:19 puller: 3, starting
2022/11/10 01:38:19 puller: 1, starting
2022/11/10 01:38:19 puller: 0, starting
2022/11/10 01:38:19 puller: 2, starting
2022/11/10 01:38:19 puller: 3, failed to fetch and pull repo: curltest, error: failed to run command: [git checkout main], error: exit status 128
2022/11/10 01:38:22 puller: 1, updated repo: argocd-manifests
2022/11/10 01:38:25 puller: 0, updated repo: mobile-api
2022/11/10 01:38:29 puller: 0, updated repo: spendshelf-backed
2022/11/10 01:38:29 puller: 2, updated repo: spendshelf-frontend
2022/11/10 01:38:32 puller: 0, finished
2022/11/10 01:38:32 puller: 3, finished
2022/11/10 01:38:32 puller: 1, finished
2022/11/10 01:38:32 puller: 2, finished
```