Post #3361913
2026-06-20 18:52 UTC
If you just want one point of truth, the minimal version is to create a bare repo somewhere that you have ssh access to or your local machine. Then you can clone/pull/push from it.
A bare repo git init —bare is a special kind of repo meant for exactly this, but can be a bit confusing at first. A normal repo contains all of your current working files and a special .git directory that holds all the files/blobs/history that got needs to work. A bare repo is just the .git in a directory. So you can use it as a remote, but it never has a working set. They are usually named something like my_repo.git.
Replies (1)
-
@MonkeMischief@lemmy.today 2026-06-21 13:41
This was really informative, thank you so much for taking the time! Definitely bookmarking this. :) I was looking up further why you’d use a bare repo over a standard one. Somebody said for just sharing a repo between users, “snapshots just take up unnecessary space.” …But would that mean you can’t roll back history? Maybe I’m ignorant on the term snapshot in Git context lol. But yeah, I really appreciate the post and I think that’ll get me on the right foot, to actually developing games instead of setting up yet another tool and procrastinating what I want to actually be doing anyway. 😂