Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: