What’s a good alternative to storing Git repositories only on my PC and hard drive?

0
2
Asked By MellowOrbit42 On

I currently keep my code in a local Git repository and periodically copy it to an external hard drive. I only upload compiled binaries to my store pages and prefer not to publish the source code. Since I stopped using GitHub because I'm uncomfortable with code being used for AI training, I'm looking for a more reliable private backup or hosting setup than relying on just my computer and a hard drive. What storage or version-control service do you use?

4 Answers

Answered By AmberKite29 On

A private repository on a service such as GitLab or Bitbucket is a convenient alternative to GitHub. If you want maximum control over where the code goes, run a lightweight Git server yourself and use an encrypted off-site backup in addition to local storage.

Answered By CopperLynx7 On

Git is separate from GitHub, so you can keep using Git while choosing another host. GitLab, Bitbucket, and self-hosted options such as Gitea or Forgejo can keep repositories private. A self-hosted service on a small home server or Raspberry Pi gives you more control, although you should still back it up elsewhere.

Answered By QuietMaple18 On

For a simple setup, keep the repository locally and maintain at least one additional copy on an external drive or USB device. Periodically creating an archive of the repository can work, but make sure the backup is stored separately from your main computer and tested occasionally.

Answered By SilverPanda63 On

Mercurial is another distributed version-control system if you dislike Git’s workflow. You can run it entirely locally or host the repositories on your own machine, but the important part is having automated, redundant backups rather than which version-control tool you choose.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.