Introduction
Welcome to Intro to Git! This guide will help you learn how to use Git by installing the appropriate version and pushing your code to the repository. Git is a version control system used for software development and GitHub is an internet hosting service that provides access control, bug tracking, task management, and other features for Git projects.
Intended Users
This documentation is targeted towards the following Users:
- Beginner developers who are using Git and are using Git to push their code into the repository.
Software Requirements
Before proceeding, ensure that you have the following requirements installed:
Procedure Overview
The main section of the documentation are summarized below.
Notes and Warning Messages
Throughout the documentation, we will use message blocks to inform you of relevant information. Each possible message block, from most important to least important:
Warning
Specifies content that must read before proceeding.
Info
Indicates additional important information and tips.
Success
Indicates what success looks like.
Installing Git
Here are some examples of how to install Git using Linux, MacOS and Windows.
Linux Users
We have provided the following installation commands for some of the most popular Linux distributions:
Ubuntu
sudo apt install git
Arch
sudo pacman install git
Fedora / Red Hat
sudo dnf install git
MacOS Users
First, install Homebrew if you havent already installed. Click here
Then, run :
brew install git
inside yout terminal
Windows Users
For Windows users, vist the following Web page and download Git: Click here
and click the 64-bit for Windows setup.
1. Click, yes if the following pop-up window pops up
2. Choose next for all the prompt
Choose next for all the prompt
3. Click the dropdown button to select Visual Studio Code. Otherwize, select the default setting which is Vim
4. Select Git from the command line and also from third party software and keep it that way.
5. Use bundled OpenSSH and Use the OpenSSL library should be the defaults. Keep it that way.
6. Select Checkout Windows-style should be default. Keep it that way.
7. Choose the terminal emulator: Leave it at the default which is Use MinTTY
8. Select the default git pull option checked
9. Select the default Git Credential Manager Core.
10. You should be done installing Git. To check if Git is installed, go to your start menu and typeinside the terminal. You should see the Git icon logo which is shown in the screenshot.
Git bash
11. Inside the terminal type this command, this will display the current version of Git
git --version
Once you have the latest version of Git, you are ready to learn the Git Basics commands.
Conclusion
By the end of this section, you will have successfully learned the following:
- Learn what is Git about
- How to install Git into your environment
Congratulations! 🎉 Go on to the next section to learn more about how to use Git Basic commands. Click the link below: