2 ms·
Always use --force-with-lease.
by klysm 2y ago
Always use --force-with-lease.
- rednafi 2y agoThis will only save you if you haven't taken a pull right before pushing your changes to the remote branch. I almost always do this: ``` git pull --rebase main ``` And then push the changes with `git push origin HEAD`. Pushing with `--force-with-rebase` won't save me from this. I usually never rebase a shared branch.