Justine Smithies on Nostr: I'm after some advice from folk that use #Git . I have my own self hosted Git server ...
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.
Published at
2026-01-24 14:17:33 UTCEvent JSON
{
"id": "3534f97a732cd46d14e7c08d716b2e4b47761d7cde6ed481e7eed28cb108195e",
"pubkey": "76a830addb47903a3c8093772cd4b03d936ae4b4bb80810d42005249c84b517e",
"created_at": 1769264253,
"kind": 1,
"tags": [
[
"t",
"git"
],
[
"proxy",
"https://snac.smithies.me.uk/justine/p/1769264253.276179",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content": "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 \u003cremote\u003e \u003cbranch\u003e 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 ???\nI 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.\n",
"sig": "82ed34c6bf14e444abf4078097ee444361b8e750f5d337da77c0c600fffb15945650baff9fe5c5227a631c61c26bb532fd9cb91b180b1cdfec21009ae1919665"
}