I'm after some advice from folk that use . 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.
0

If you have a fediverse account, you can quote this note from your own instance. Search https://snac.smithies.me.uk/justine/p/1769264253.276179 on your instance and quote it. (Note that quoting is not supported in Mastodon.)