Skip to content

Instantly share code, notes, and snippets.

@henri-tremblay
Created December 28, 2016 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save henri-tremblay/9bef56b41f58c18c36a21b0fecca61ee to your computer and use it in GitHub Desktop.
Save henri-tremblay/9bef56b41f58c18c36a21b0fecca61ee to your computer and use it in GitHub Desktop.
git is-rebased
is-rebased = !"f() { if [ \"$(git show-ref -s $1/$2)\" = \"$(git merge-base HEAD $1/$2)\" ]; then echo "Rebased" || exit 0; else echo "Not rebased!" || exit 1; fi; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment