If you type a command that needs sudo, but forget sudo and press enter, no probl...

@alexhall@mastodon.social

If you type a command that needs sudo, but forget sudo and press enter, no problem; you can type `sudo !!` and the command will run again, this time with sudo. I wish something similar existed for git checkout. I often type `git checkout newBranch`, knowing that newBranch doesn't exist and wanting to create it. I want a way to say, "Do that again, but with -b this time."