Skip to content

Instantly share code, notes, and snippets.

@bluerabbit
Created August 20, 2020 00:29
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 bluerabbit/74faca93855bdf505b08f44d2d487252 to your computer and use it in GitHub Desktop.
Save bluerabbit/74faca93855bdf505b08f44d2d487252 to your computer and use it in GitHub Desktop.
pull requestのcommitページですべてのコミットのcherry-pickコマンドを作成する
let texts = [];
$$('.js-commits-list-item clipboard-copy').forEach(function (e, i){ texts.push("git cherry-pick " + e.value) })
copy(texts.join('\n'));

クリップボードに下記が入る

git cherry-pick fab98cd67eebcd95a6c7e305873ddc49485cf6dx
git cherry-pick 56e6117dd91f9886cc87aad99b1ab29de6d556dx
git cherry-pick 0c36c53c96e97685e0ced05a7a80d7e3dfb51dfx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment