@justine You'll end up with objects from both the old and new files in the object store, but that should sort itself out over time when you run gc on it, anything not referenced anywhere will eventually be cleaned out.
Conversation
Notices
-
Embed this notice
Peter Krefting (nafmo@social.vivaldi.net)'s status on Saturday, 24-Jan-2026 23:26:25 JST
Peter Krefting
-
Embed this notice
Justine Smithies (justine@snac.smithies.me.uk)'s status on Saturday, 24-Jan-2026 23:26:27 JST
Justine Smithies
I'm after some advice from folk that use #Git . I have my own self hosted Git server and I have one repository that I'd like to empty of all content and history. I know I can just delete the remote repository and recreate it again starting a fresh. But would using git push --force <remote> <branch> not just do the same by overwriting the remote repository with the locals contents ? Or could I end up with files in the remote that are not in my local ???
I should also say that I am the only person that pushes to this remote repo too. Any help or advice is very much appreciated and thank you.
-
Embed this notice