Skip to content

[Suggestion]: Update 2.4 Git Basics - Undoing Things section with git restore #1441

@prosoitos

Description

@prosoitos

I'd be happy to submit a PR on this if people are ok with the change.

2.4 Git Basics - Undoing Things has fallen out of date now that git restore <file> is suggested instead of git checkout -- <file> to get rid of changes in unstaged files.

The paragraph "Unmodifying a Modified File" of that page, which predates the launch of the new command git restore, does not reflect the current version of Git anymore. I would be happy to update this, but I wanted to make sure the book authors agreed with this first (particularly since the old command still works and there is an experimental warning in the git-restore man page).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions