You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).