git rebase -i made my branch diverge and I'm scared to force push
Git 2.43. I rebased my feature branch onto main with git rebase -i origin/main, squashed a few commits, and now git status says 'Your branch and origin/feature have diverged, 3 and 5 commits respectively'. I know I need to force push but I've heard horror stories. Is git push --force-with-lease actually safe here, or is there something else I should do first? A coworker has a branch based on the old version of my feature, which is the main reason I'm hesitating.
4 replies