🟢 Configure Git¶
After installing Git, configure Git to handle notebooks, and set your global user.name and user.email.
WHY?
Git records the name and email associated with each saved project change. This information helps identify who made each change in a project history. Configuring Git correctly makes local commits match the expected GitHub identity and keeps project history clear.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.
4. Verify¶
Verify that the last command correctly shows your user.name and user.email. If not, repeat the installation and configuration until successful.