There are a couple of git commands I always, always forget to run when I set up Git on a new machine, so I’m writing them out here as a reminder to myself.
Configuring global username and email settings Link to heading
git config --global user.name "John Doe"
git config --global user.email "john@doe.org"
Verify current settings Link to heading
git config --list
Temporarily override authorship Link to heading
git commit --author="John Doe <john@doe.org>"
Clone into a Git repo while simultaneously fetching all submodules Link to heading
git clone --recursive <repository_url>