amitsaha/gitbackup — reverse-engineered prompt
Reverse engineered prompt
Build me a Go command line tool called gitbackup that helps me keep local backups of all my repositories from GitHub, GitLab, Bitbucket, and Forgejo.
I want to run one command, give it the service name, my token or Bitbucket email and token, and a backup folder, then have it find my repositories and clone them there. If the repo already exists locally, it should update it instead of starting over. Let me choose HTTPS cloning or SSH cloning, and let me make bare clones if I want.
Please support GitHub Enterprise and self hosted GitLab or Forgejo by letting me pass a custom server URL. Also add a GitHub only mode that can request a full migration archive and save the tar.gz file.
Use a simple config file option too, so I don’t have to type everything each time. Include helpful errors, tests, a README with examples for Mac, Linux, Windows, and Docker. Look up current API docs online if needed.
Want more depth? Deep Reverse