Actually rebasing before pushing is the best time to do so, so a pre-push hook seems great. You can also have your branch displayed in your shell which would help avoid this.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments