Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Git Configuration | Introduction to Git
Git Essentials

bookGit Configuration

You can interact with Git in two ways:

  • through a graphical interface, such as within an Integrated Development Environment (IDE);
  • through the Terminal (Git Bash).

In this course, you will use the Terminal (Git Bash) to work with Git, as it is often more convenient and faster. Learning to use the Terminal (Git Bash) will also help you navigate graphical interfaces more easily.

Note
Note

You should follow along on your computer throughout the course, run the commands, and experiment with them.

Before running any commands, learn how to open the Terminal (Git Bash) on your operating system.

Configuration

Proceed with the configuration. A Version Control System (VCS) should identify who made specific changes.

To set this up, configure basic information in Git, including your username and email address, by running the following commands:

Note
Note

To run a certain command means to enter/paste this command in the terminal window and press the Enter key.

Here is an example of configuration:

Git configuration

Replace email@example.com with your actual email address and username with your preferred username (keep the double quotes). It is recommended to use the format Firstname Lastname, where Firstname is your first name and Lastname is your last name.

The main command used here is git config. When combined with the --global flag, it sets the value for all Git repositories you work with. Later in the course, you will learn how to set different values for specific repositories.

question mark

Choose all INCORRECT options to configure the email address in Git.

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 3

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Awesome!

Completion rate improved to 3.57

bookGit Configuration

Swipe to show menu

You can interact with Git in two ways:

  • through a graphical interface, such as within an Integrated Development Environment (IDE);
  • through the Terminal (Git Bash).

In this course, you will use the Terminal (Git Bash) to work with Git, as it is often more convenient and faster. Learning to use the Terminal (Git Bash) will also help you navigate graphical interfaces more easily.

Note
Note

You should follow along on your computer throughout the course, run the commands, and experiment with them.

Before running any commands, learn how to open the Terminal (Git Bash) on your operating system.

Configuration

Proceed with the configuration. A Version Control System (VCS) should identify who made specific changes.

To set this up, configure basic information in Git, including your username and email address, by running the following commands:

Note
Note

To run a certain command means to enter/paste this command in the terminal window and press the Enter key.

Here is an example of configuration:

Git configuration

Replace email@example.com with your actual email address and username with your preferred username (keep the double quotes). It is recommended to use the format Firstname Lastname, where Firstname is your first name and Lastname is your last name.

The main command used here is git config. When combined with the --global flag, it sets the value for all Git repositories you work with. Later in the course, you will learn how to set different values for specific repositories.

question mark

Choose all INCORRECT options to configure the email address in Git.

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 3
some-alt