Installing Git
- Windows
- Ubuntu
- macOS
Download the Git for Windows installer from the official website: https://git-scm.com/download/win
Run the installer by double-clicking on the downloaded file. The installation process will begin and you will be prompted to select the components you want to install. You can leave the default options selected.
Select the start menu folder where you want to create the Git shortcut. You can leave the default option selected.
Select the additional icons you want to create for Git. You can leave the default option selected.
Choose the default editor that you want Git to use. You can choose between Vim, Notepad++, and Visual Studio Code.
Select the default Git behavior you want. You can leave the default option selected.
Configure the HTTPS transport backend to use. You can select between OpenSSL and Secure Channel (WinSSL).
Click on the Install button to begin the installation process.
Once the installation is complete, click on the Finish button to close the installer.
Now that you have successfully installed Git on Windows 10, you can open a command prompt and type "git" to verify that it's properly installed and to see the list of available commands.
You can also use Git from the command line or by using Git clients such as Git Bash, Git GUI, and GitKraken.
Open a terminal window by pressing
Ctrl+Alt+T
.Update the package lists by running the command
sudo apt-get update
Install Git by running the command
sudo apt-get install git
Verify that Git has been successfully installed by running the command
git --version
. This will display the version of Git that is currently installed.(Optional) To set your username and email address for commits, you can run the following commands:
git config --global user.name "Your Name"
git config --global user.email "your-email@example.com"
By default, Git will be installed with the default configuration settings, but you can customize Git's settings by modifying the .gitconfig file located in your home directory.
This is the basic way to install git on Ubuntu, once you have git installed you can use it from terminal or you can use Git clients such as GitKraken, SourceTree and more.
Download the latest version of Git for Mac from the official website: https://git-scm.com/download/mac
Open the downloaded .dmg file and double-click on the Git.pkg file to start the installer.
Follow the instructions on the screen to complete the installation.
Verify that Git has been successfully installed by opening a Terminal window and running the command
git --version
. This will display the version of Git that is currently installed.(Optional) To set your username and email address for commits, you can run the following commands:
git config --global user.name "Your Name"
git config --global user.email "your-email@example.com"
By default, Git will be installed with the default configuration settings, but you can customize Git's settings by modifying the .gitconfig file located in your home directory.
This is the basic way to install git on Mac, once you have git installed you can use it from terminal or you can use Git clients such as GitKraken, SourceTree and more.