Git, developed by Linus Torvalds, is the most popular distributed system for version control. Git is a very efficient platform for open-source projects. Using Git, you can collaborate with the other developers, upload the new changes, keep track of the changes, and many more.

Installing Git on Linux Mint

The Git is included in Linux Mint 20 standard repositories can be installed easily using the apt command.

As always, update and upgrade your Linux Mint 20 system before installing the Git package.

Type the below-given command to update the apt package listing:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image6-19.png" data-lazy- height="373" src="data:image/svg xml,” width=”806″>

Next, upgrade the system with the command:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image8-16.png" data-lazy- height="282" src="data:image/svg xml,” width=”807″>

After successfully updating and upgrading the Linux Mint 20 system, install Git with the command:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image7-18.png" data-lazy- height="262" src="data:image/svg xml,” width=”808″>

Press ‘y’ to continue installing Git.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image10-13.png" data-lazy- height="160" src="data:image/svg xml,” width=”797″>

When the Git is successfully installed, verify the installation:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image10-14.png" data-lazy- height="160" src="data:image/svg xml,” width=”797″>

Git 2.25.1 is successfully installed on my Linux Mint 20.

Configuring the Git on Linux Mint 20

Next, we have to configure Git. The Git can be configured from the command line. Configuring Git refers to setting a name and email address. The name and email are used while committing changes on the Git repository.

Fire up the terminal and use the below-given command syntax to set a global commit name:

$ git config –global user.name <“Your Name”>

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image2-27.png" data-lazy- height="105" src="data:image/svg xml,” width=”812″>

Type the below-given command to set the global commit email:

$ git config –global user.email <“Your Email”>

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image1-28.png" data-lazy- height="101" src="data:image/svg xml,” width=”806″>

Finally, when the global commit name and email are set, run the below-given command to check and verify the changes:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image4-23.png" data-lazy- height="107" src="data:image/svg xml,” width=”812″>

The output shows that the global commit name and email are sent successfully.

If the changes are not made correctly, or you want to change the global commit name and email any time, then you can edit the configuration settings any time by using the command:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image3-25.png" data-lazy- height="72" src="data:image/svg xml,” width=”811″>

The Git configuration file is opened in the nano editor. You can make any changes in the Git configuration file if you wish to.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image5-21.png" data-lazy- height="167" src="data:image/svg xml,” width=”804″>

Conclusion

Installing Git on Linux Mint 20 is very straightforward. Git is part of the Linux Mint 20 base repositories and can be downloaded and installed with apt command.

About the author

<img alt="Kamran Sattar Awaisi" data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/52E439DD556343299E3D211D5E577D28-150×150.jpg60396d689777a.jpg" height="112" src="data:image/svg xml,” width=”112″>

Kamran Sattar Awaisi

I am a software engineer and a research scholar. I like to write article and make tutorial on various IT topics including Python, Cloud Computing, Fog Computing and Deep Learning. I love to use Linux based operating systems.