oliverdavies.uk/content/node.2f07215e-0ea6-4afe-8c19-ed0ed81246d6.yml

80 lines
2.8 KiB
YAML

uuid:
- value: 2f07215e-0ea6-4afe-8c19-ed0ed81246d6
langcode:
- value: en
type:
- target_id: daily_email
target_type: node_type
target_uuid: 8bde1f2f-eef9-4f2d-ae9c-96921f8193d7
revision_timestamp:
- value: '2025-05-11T09:00:12+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: '`git revert` is your friend'
created:
- value: '2024-05-22T00:00:00+00:00'
changed:
- value: '2025-05-11T09:00:12+00:00'
promote:
- value: false
sticky:
- value: false
default_langcode:
- value: true
revision_translation_affected:
- value: true
path:
- alias: /daily/2024/05/22/git-revert-is-your-friend
langcode: en
body:
- value: |
<p>Imagine you've made a commit and want to undo it, or a particular commit is causing issues in production and you want to roll it back.</p>
<p>Instead of having to change it back manually, <code>git revert</code> can do it for you.</p>
<p>You specify the commit SHA you want to revert and Git will automatically try and revert that commit.</p>
<p>It creates its own commit message which includes the original commit message and <a href="/daily/2024/05/20/referencing-other-commits-in-commit-messages">the reverted commit SHA</a>, so you can easily find or navigate to the original commit.</p>
<p>For example:</p>
<blockquote>
<p>Revert "Sort talks only by the event date"</p>
<p>This reverts commit cbd1417b24a608df8b451a3ab5c9f888de41e758.</p>
</blockquote>
<p>Next time, instead of manually reverting a commit, give <code>git revert</code> a try.</p>
format: full_html
processed: |
<p>Imagine you've made a commit and want to undo it, or a particular commit is causing issues in production and you want to roll it back.</p>
<p>Instead of having to change it back manually, <code>git revert</code> can do it for you.</p>
<p>You specify the commit SHA you want to revert and Git will automatically try and revert that commit.</p>
<p>It creates its own commit message which includes the original commit message and <a href="/daily/2024/05/20/referencing-other-commits-in-commit-messages">the reverted commit SHA</a>, so you can easily find or navigate to the original commit.</p>
<p>For example:</p>
<blockquote>
<p>Revert "Sort talks only by the event date"</p>
<p>This reverts commit cbd1417b24a608df8b451a3ab5c9f888de41e758.</p>
</blockquote>
<p>Next time, instead of manually reverting a commit, give <code>git revert</code> a try.</p>
summary: null
field_daily_email_cta: { }