Watch: How to set up Git on Mac for the first time | Vovy
Watch Vovy do it on a Mac: "Set up git with my name and email so my commits show up on GitHub". Vovy configures Git with your name, a GitHub-linked email, and main as the default branch, so every commit is credited to you on GitHub.
"Set up git with my name and email so my commits show up on GitHub"
Vovy configures Git with your name, a GitHub-linked email, and main as the default branch, so every commit is credited to you on GitHub.
What happens in the video
- Check Git is installed: Vovy runs git --version. Git, the tool that saves snapshots of your code, comes with Apple's Command Line Tools, so Vovy installs those if needed.
- Find your GitHub email: Vovy opens GitHub Settings, Emails in your browser and copies your private noreply address, so your real email is never published in commits.
- Save your name and email: Vovy runs git config --global user.name and user.email. These stamp every commit so GitHub shows your avatar next to it.
- Set sensible defaults: Vovy sets init.defaultBranch to main, matching GitHub, and sets your editor to Cursor or VS Code instead of the confusing vim default.
- Show your Git config: A card lists each setting Vovy changed, in plain English, with the one command to change any of them later.
Read the step-by-step guideLoading...