Thank you for the article. I have an addition:
git checkout . was "replaced" by git restore .. You can also use git restore --staged . to unstage files.
You also repeated git push --delete origin new-feature both in the comment and the codeline. I think you want -d for the shorter version. (;