Difficulty: Beginner
Estimated Time: 60 minutes

This course will guide you through the basic git actions.

At anytime, feel free to look at the documentation for more information about a specific command.

Git basics Dojo

Step 1 of 6

Step 1

In this step, we are going to look at the environment and see how to view & update the configuration.

  • Display the git client version:

git version

  • Look at the available git commands:

git help

  • List all configuration:

git config -l

  • Set your identity (you can update it):

git config --global user.name "John Doe"

git config --global user.email [email protected]

  • Set default branch name:

git config --global init.defaultBranch main

  • List at the updated configuration:

git config -l

  • You can also look at one configuration in particular:

git config user.name