🟢 Configure Git¶
After installing Git, configure Git to handle notebooks, and set your global user.name and user.email.
1. Open VS Code¶
Open your VS Code editor. We'll use the terminal available in VS Code.
2. Open a New Terminal¶
Use the VS Code menu to select Terminal > New Terminal.
Opening a new terminal ensures the terminal knows about recently installed git.
- If Windows, always use a terminal type of
PowerShell(powershell) orPowerShell Core(pwsh). Do NOT use Command Prompt, it is deprecated. - If Mac/Linux, use your default terminal (typically
zshorbash).
3. Configure Git¶
Change these commands to use YOUR name and the same email you used for GitHub. Run one command at a time and hit ENTER or RETURN after each line to execute it.
git config --global user.name "Your Name"
git config --global user.email youremail@example.com
4. Verify¶
Verify that the last command correctly shows your user.name and user.email. If not, repeat the installation and configuration until successful.
git config --global user.name
git config --global user.email