Linux, terminal and Git

Stage 1 · Lesson 7 of 8

Installing and configuring Git

Set up your machine

Git is the tool that tracks changes to your code. Install it with your , then tell it who you are. Run git config --global user.name and git config --global user.email, using the same email you will use on .

Set init.defaultBranch to main so new repositories match GitHub's default. Choose the editor Git opens for with core.editor. On Windows, install and set up Git inside WSL too, not only on the Windows side, because each side keeps its own settings.

This lives in ~/.gitconfig and applies to every on the machine.

Common trapcommitting for weeks with the wrong email, so GitHub does not link the commits to your profile.

A question to check yourself, an AI practice session and 1 cheat sheet entry come when you add the roadmap to your account. Add it

Resources for this stage

Start with

Keep handy

  • The install command and documentation for the package manager you will use for every tool

  • The editor used through this roadmap, with official set-up guides for each operating system

Also worth your time

  • A map of the whole Linux topic, to see how much there is beyond this stage

Mark this stage as not done?