Skip to content

Instantly share code, notes, and snippets.

@larryyangsen
Created October 19, 2023 07:22
Show Gist options
  • Save larryyangsen/581be5b5fca0cfcc7e6b75b34daeb1c1 to your computer and use it in GitHub Desktop.
Save larryyangsen/581be5b5fca0cfcc7e6b75b34daeb1c1 to your computer and use it in GitHub Desktop.
find not cherry picked commits
git log --format="%h %s" --cherry-pick --oneline --left-only --no-merges develop...master |
while read cmt_log
do
cmt_msg=`echo "${cmt_log}" | awk '{ $1=""; print }'`
git log --format=" %s" develop..master | grep --fixed-string -s "${cmt_msg}" > /dev/null || echo ${cmt_log}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment