IT Nota

  • Home
  • How To
  • .NET
  • WordPress
  • Contact
You are here: Home / How To / How to Install Git

How to Install Git

This may be a very basic topic, but it turned out to be very useful for people who are just starting to delve into version control software.

Just a quick overview from Pro Git book by Scott Chacon and Ben Straub that you can download from the link at the bottom of this post, this would give you a clearer explanation on why you should use it.

What is “version control”, and why should you care? Version control is asystem that records changes to a file or set of files over time so thatyou can recall specific versions later. For the examples in this book,you will use software source code as the files being version controlled,though in reality you can do this with nearly any type of file on acomputer.

If you are a graphic or web designer and want to keep every version of an image or layout (which you would most certainly want to), a Version Control System (VCS) is a very wise thing to use. It allows you to revert selected files back to a previous state, revert the entire project back to a previous state, compare changes over time, see who last modified something that might be causing a problem, who introduced an issue and when, and more. Using a VCS also generally means that if you screw things up or lose files, you can easily recover. In addition, you get all this for very little overhead.

Now we can go back to the practical side of it on how to install it.

Windows

If you’re on Windows, the simplest thing to do is just head on to this link and download latest version of Git exe file.

Git download page for Windows

Run the exe and follow the instructions, then you’re done.

While it’s outside the scope of this post, you can also install Git from Visual Studio by checking the options when you install it. My personal preference though is to install Git separately and you can still access it from Visual Studio.

macOS (or Linux)

For Mac users, by default, you already have Git installed in your system, you just need to access it from the Terminal. The most common issue is the version of Git that’s installed is not the latest one. It’s certainly not a big issue if you’re just starting, but if you want to keep updating your Git to the latest version, you need to install your own.

You can check which version of Git you have by typing the following command in Terminal:

git --version

You can certainly download your own Git from as well, but I think the best way to do it is to install it using Homebrew package manager for macOS (or Linux).

Just install it from the Terminal by copying the command line on their page by clicking the notepad icon on the right. Then you can paste that command on your Terminal.

Homebrew Package Manager installation page

Once you have Homebrew installed, you can open your Terminal and type the following:

brew install git

That’s it.

You can run the command line again to verify if your default Git is replaced with the latest version that was installed from Homebrew:

git --version

Now you’re almost ready to use Git. Check on how to do a basic configuration in Git before we can use it.

Further Reading

Basic Configuration in Git
How to Use Your Favorite Text Editor in Git

Download

Git

References

Pro Git (FREE eBook)
Homebrew The Missing Package Manager for macOS (or Linux)

October 11, 2021 Filed Under: How To Tagged With: Git

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Buy me a coffee Support this site
Buy Me a Coffee?

Categories

  • .NET
  • Coding
  • Cybersecurity
  • Database
  • How To
  • Internet
  • Multimedia
  • Photography
  • Programming
  • Resources
  • Review
  • Tips and Tricks
  • Use Case
  • WordPress
  • Writing

Recent Posts

  • How to Check Installed .NET Framework Version
  • How to Remove .NET Runtime and SDK on Mac
  • How to Solve Intermittent 403 Error in IIS
  • How to Show Hidden Folders and Files in Mac Finder
  • How to Solve MS Office VBA Compile Error UserAuthentication

Recent Posts

  • How to Check Installed .NET Framework Version
  • How to Remove .NET Runtime and SDK on Mac
  • How to Solve Intermittent 403 Error in IIS
  • How to Show Hidden Folders and Files in Mac Finder
  • How to Solve MS Office VBA Compile Error UserAuthentication
  • RSS

Tags

.NET Access Amazon ASP.NET Cdonts Dll Classic ASP Code Editor ETL FSharp Genesis Framework Git Google HP Asset Manager HTML5 Hugo IIS Information Security Internet Internet Information Services iOS JAMStack Linux macOS Microsoft Microsoft SQL Server MVC Office PHP PowerShell Python Simple Mail Transfer Protocol Smtp Server SQL SQL Server SSIS SSMS SSRS Sublime Text Visual Studio Visual Studio Code VPN Windows Windows 8 Windows 10 Windows Server

Copyright © 2011-2022 IT Nota. All rights reserved. Terms of Use | Privacy Policy | Disclosure