Sometimes I work with git repos that have some changes fetched but not yet merged to the local branch. Occasionally I make commits without noticing this, which necessitates rebase/conflict resolution.
I would like to be notified when I'm working with a git repository such as this. Is there a way to configure either git or my shell (fish) to automatically print a message like:
>Warning: Local branch is not even with upstream, merge changes to rectify.
? It doesn't have to be a message, just any reasonable way of notifying me will do.