Skip to content

Instantly share code, notes, and snippets.

@anhmiuhv
Created October 20, 2020 20:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anhmiuhv/317cafde2609893055ecd1d37cbdd373 to your computer and use it in GitHub Desktop.
Save anhmiuhv/317cafde2609893055ecd1d37cbdd373 to your computer and use it in GitHub Desktop.
repo command to see if any branch has diverged from origin
repo forall -c 'if [ "$(git status | grep -q diverged && echo "diverged")" != "" ]; then echo $REPO_PROJECT; fi'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment