Issue #142 P2: 付録Aをswitch/restoreに統一#146
Merged
Merged
Conversation
51 tasks
There was a problem hiding this comment.
Pull request overview
This PR modernizes Git command documentation by migrating from git checkout to the newer, more explicit git switch (for branch operations) and git restore (for file restoration) commands introduced in Git 2.23. This change improves clarity by separating branch switching from file restoration operations.
Changes:
- Updated branch operation examples in the Git basics chapter to use
git switchandgit switch -c - Replaced file restoration examples in the appendix from
git checkout --togit restorewith appropriate options - Added explanatory notes in both files clarifying the transition from old to new command syntax
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| docs/src/chapter-git-basics/index.md | Updated branch creation and switching examples to use git switch instead of git checkout, added note explaining the modern command approach |
| docs/src/appendix-git-commands-reference/index.md | Replaced file restoration commands with git restore, updated branch switching commands to git switch, added explanatory notes, and updated the combined workflow example |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #142 の P2(付録Aのコマンドを推奨形へ)対応です。
変更点
git checkoutによる「切替/復元」を、推奨形のgit switch/git restoreに整理(docs/src/appendix-git-commands-reference/index.md)git switchに寄せて整合(docs/src/chapter-git-basics/index.md)補足
docs/src/chapter-docs-as-code/index.mdのgit checkout -bは、PR Issue #142 P1: Pages公開導線の整理 + AI利用ポリシー #145 側でgit switch -cに統一済みです(先に Issue #142 P1: Pages公開導線の整理 + AI利用ポリシー #145 をマージすると全体として整合します)。関連