uuid: - value: 67695589-8db1-45fd-9940-3295330f55cc langcode: - value: en type: - target_id: daily_email target_type: node_type target_uuid: 8bde1f2f-eef9-4f2d-ae9c-96921f8193d7 revision_timestamp: - value: '2025-06-06T22:07:07+00:00' revision_uid: - target_type: user target_uuid: b8966985-d4b2-42a7-a319-2e94ccfbb849 revision_log: { } status: - value: true uid: - target_type: user target_uuid: b8966985-d4b2-42a7-a319-2e94ccfbb849 title: - value: 'Picking cherries' created: - value: '2025-06-04T22:04:43+00:00' changed: - value: '2025-06-06T22:07:07+00:00' promote: - value: false sticky: - value: false default_langcode: - value: true revision_translation_affected: - value: true path: - alias: /daily/2025/06/04/picking-cherries langcode: en body: - value: '
If you''re working on a feature branch, or a temporary branch for pair or mob programming, what do you do if you accidentally commit a change to the wrong branch?
Do you reset your changes, switch to the correct branch and re-create the same changes manually?
You don''t need to.
Git has a solution for this.
Create the commit as you would on the correct branch and copy the commit SHA.
Use git checkout
or git switch
to move to the correct branch and use git cherry-pick
with the commit SHA.
It will pluck the commit from the branch and re-apply the changes with the same commit message.
Then, if you merge or rebase your temporary branch, Git will know the change has already been applied and skip that commit.
No need to re-do the same changes again manually.
' format: basic_html processed: 'If you''re working on a feature branch, or a temporary branch for pair or mob programming, what do you do if you accidentally commit a change to the wrong branch?
Do you reset your changes, switch to the correct branch and re-create the same changes manually?
You don''t need to.
Git has a solution for this.
Create the commit as you would on the correct branch and copy the commit SHA.
Use git checkout
or git switch
to move to the correct branch and use git cherry-pick
with the commit SHA.
It will pluck the commit from the branch and re-apply the changes with the same commit message.
Then, if you merge or rebase your temporary branch, Git will know the change has already been applied and skip that commit.
No need to re-do the same changes again manually.
' summary: '' field_daily_email_cta: { }