CUEH Development Environment Guides
Installing Git

Installing Git

As part of the programming module you study on the course, you will be tasked with using the Git version control system to complete lab activities and your assessments.

In this guide, you shall be taken through the journey of installing Git for a Linux (Debian-based) operating system.

Downloading and Installing Git

As it is, a Linux distribution such as Ubuntu or Linux Mint, do not come installed with the Git tool. Therefore, to install these libraries you will need to use the command-line interface. To open the Terminal window, you will need to search for Terminal in the Application screen, or use the keyboard shortcut: Ctrl + Alt + T,

With the command-line window open, you can install the necessary libraries by using the following command:

$ sudo apt install git

Important

Remember that the sudo command is used to elevate privileges. In this instance, the apt command requires administrator privileges to install the necessary tools/libraries for Qt.

When this command is entered in the command-line interface window, you will see a question is asked whether you wish to proceed with the installation. Enter Y into the command-line interface window and push Enter on the keyboard. This will begin the process of downloading the necessary libraries for Git. This process may take some time depending upon the speed of your internet connection, but once completed you should be able to enter another terminal command.

Checking the Git Installation

To confirm that everything is working as expected, you will need to perform a quick check using the command-line interface. With the command-line interface open, you can type the command git -v and the git tool should be executed and display the version number. The outcome should be similar to the one shown below:

$ git -v
  git version 2.45.2

If you are met with a similar display, then the Git tool has been installed successfully on your machine.

Conclusion

That is the end of this guide on installing Git. If you have followed all the necessary steps correctly, you should have a fully functional implementation of Git which will enable you to complete any necessary programming-based activities and assessments you will participate with on this course.

Mistakes or Problems?

If you have spotted any errors or issues within this tutorial, you can e-mail Dr Ian Cornelius. Ensure to include in your message a description of the error or issue and a possible resolution. Also remember to include a URL to the page with the issue or error.