Update permalinks for old daily emails

Move them from /archive/* to /daily/* to match the newer emails.
This commit is contained in:
Oliver Davies 2024-09-02 22:41:17 +01:00
parent 0c09bc05cd
commit a99fa854e1
34 changed files with 40 additions and 40 deletions

View file

@ -8,7 +8,7 @@ tags:
- git
---
[Yesterday's email](https://www.oliverdavies.uk/archive/2022/11/20/version-controlled-commented-out-code) talked about whether commented-out code should be present if your code is version-controlled, but how do you avoid committing it in the first place?
[Yesterday's email](https://www.oliverdavies.uk/daily/2022/11/20/version-controlled-commented-out-code) talked about whether commented-out code should be present if your code is version-controlled, but how do you avoid committing it in the first place?
You could make sure that you remove everything manually before you stage and commit your changes, or I like to use `git add --patch` (or `git add -p`) to interactively stage my changes, allowing me to select which parts of files I want to include in my commit and ignore anything else. The `--patch` option also works for other commands, including `checkout` and `reset`.