Skip to content

Issue #142 P2: 付録Aをswitch/restoreに統一#146

Merged
ootakazuhiko merged 1 commit into
mainfrom
feat/issue-142-p2-switch-restore
Jan 21, 2026
Merged

Issue #142 P2: 付録Aをswitch/restoreに統一#146
ootakazuhiko merged 1 commit into
mainfrom
feat/issue-142-p2-switch-restore

Conversation

@ootakazuhiko

Copy link
Copy Markdown
Collaborator

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

補足

関連

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 switch and git switch -c
  • Replaced file restoration examples in the appendix from git checkout -- to git restore with 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.

@ootakazuhiko
ootakazuhiko merged commit c935c25 into main Jan 21, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants