3 ms·
This 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
by rednafi 2y ago
This 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.