From: Chris Narkiewicz Subject: Force push fails To: gameoftrees@openbsd.org Date: Fri, 25 Aug 2023 01:39:12 +0100 I'm trying to force-push something using vanilla git. I did some git rebase -i to drop unwanted work and I try to push it to origin: [tn@ross154]~/Devel/project% git push origin main To ssh://dev.int.etacassiopeiae.net/project ! [rejected] main -> main (non-fast-forward) error: failed to push some refs to 'ssh://dev.int.etacassiopeiae.net/project' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details. So far so good, this is expected. Now, I'm trying to force: [tn@ross154]~/Devel/project% git push origin main --force Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 gotsh: bad packfile with zero objects fatal: remote error: bad packfile with zero objects Is it supported? Best regards, Chris Narkiewicz