Check if the git remote is in sync with local branch before pushing