Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Git's detached HEAD help message #1492

Merged
merged 1 commit into from
Aug 28, 2020
Merged

Update Git's detached HEAD help message #1492

merged 1 commit into from
Aug 28, 2020

Conversation

HonkingGoose
Copy link
Contributor

@HonkingGoose HonkingGoose commented Aug 21, 2020

Changes

  • Update Git's detached HEAD help message, as it now uses git switch instead of git checkout to help users get back to a previous HEAD state.

Context

From at least Git version 2.25.1, the detached HEAD advice text is changed. It now uses git switch instead of git checkout.

I searched for detached HEAD in the whole book and this is the only place where the Git command-line output is shown.

After merging, this would be the only place in the book where git switch is used.
@ben, do you want me to make a pull-request for a section explaining git switch?

@ben ben merged commit 1ca7786 into progit:master Aug 28, 2020
@HonkingGoose HonkingGoose deleted the update-git-detached-head-help-message branch August 28, 2020 18:17
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.

3 participants