367
submitted 1 day ago* (last edited 2 minutes ago) by beep@piefed.world to c/technology@lemmy.world
you are viewing a single comment's thread
view the rest of the comments
[-] Buddahriffic@lemmy.world 2 points 14 hours ago

IMO everyone should have a local backup of everything they can get related to the repo. Like I know with git itself, anytime you clone the repo you get everything, but also the supporting stuff that is in the layer outside of git. IMO the host should mainly be the hub where everyone gets and interacts with the project, while everything else is already good to go in a new location, should the host either screw up in good faith, get corrupted by outside influences, or gets overrun by local or remote powers.

This makes me a bit curious about whether the overall risk to projects is higher from individual local device failure or politics around who controls remote hosting services and the nature of the project.

[-] turmacar@lemmy.world 3 points 13 hours ago

Actual question. Can you revert git to a prior state without the remote repo?

[-] benjirenji@slrpnk.net 1 points 27 minutes ago

Unless you did a shallow clone or something every repo clone is complete in git.

[-] raspberriesareyummy@lemmy.world 7 points 12 hours ago

Yes, that's a core purpose of git.

git reset --hard

[-] Buddahriffic@lemmy.world 3 points 11 hours ago

Yeah, as the other commenter mentioned, git is a distributed source control system, so all clones have the full history (though you can bump up the "starting point" to reduce the overhead of storing all previous commits).

Hosts like github can add more features on top of that, which would have to be backed up separately, but you can automate the repository itself using a single command, which is the same command used to make a clone in the first place.

this post was submitted on 22 Jul 2026
367 points (98.4% liked)

Technology

86538 readers
3179 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 3 years ago
MODERATORS