1
0

Git – 現在ブランチの最新コミットハッシュを別ブランチにCherry-pickしてすぐにpushするワンライナーのコマンド例

Posted at

コマンド例

  • some_branch に cherry-pick & push する例
current_commit_hash=$(git show --format='%H' --no-patch) && git switch some_branch; git fetch && git reset --hard origin/some_branch && git checkout -b some_branch-$(date +%s) && git cherry-pick $current_commit_hash && git push

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

プロフィール・経歴

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0