this post was submitted on 10 Dec 2025
5 points (85.7% liked)

Linux

10605 readers
453 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
 

Use case: I want to mirror a bunch of repositories of a project. I suppose this would be pretty easy with a script.

But to the git part: I fear that the developers might force push things and thus revert commits and de facto delete code.

Is there a way to git clone and auto-checking out to a different branch or something else, to avoid force pulling and reverting commits?

you are viewing a single comment's thread
view the rest of the comments
[–] pantherina@feddit.org 3 points 5 days ago

True, I can do that with btrfs snapshots