Git for Mac Installer The easiest way to install Git on a Mac is via the stand-alone installer: Download the latest Git for Mac installer. Follow the prompts to install Git. Open a terminal and verify the installation was successful by typing git -version: $ git -version git version 2.9.2. 2. http://caldiwheelan1988.wikidot.com/blog:16. 29.2 Release Notes (2020-10-29) Download Source Code GUI Clients Git comes with built-in GUI tools ( git-gui, gitk ), but there are several third-party tools for users looking for a platform-specific experience.
I’m starting to play with deep learning, machine learning, artificial intelligence in a variety of ways from statistics, linear algebra, calculus, Python via KhanAcademy, DataQuest.io, Coursera courses, Udacity Courses, EdX courses (refreshing my memory in some cases). So I thought I would start to blog about my discoveries which will hopefully help you as well.
I was watching a video by Siraj Rival about Python for Data Science and he had put a code sample up on Github. Github is a repository for code (an online code versioning system) where people post and share code with each other. It’s becoming more of an online resume where employers can see that you’ve actually worked on projects, not just padded your resume ?
So when we find a cool project we want to play with we can download the code to our local machine using Git on our Macs. Git is a code versioning system (maintaining/updating code in an organized way) and Github is an online version of that. If you don’t know how to install Git, check out this article on installing Git.
Instead of downloading a zip file, forking the repo (using Github website to copy the code to my Github account) or using Github for Mac I wanted to download the code from the command line.
In the image above you see a green Clone or download button for a Github project. The project uses Scikit-learn for Python to do data analysis. Click that to see a dropdown where you can copy and paste the URL to the .git file. We’re not going to download the ZIP file. We’re going to pull the files from the Mac terminal instead. Go ahead and open a Mac terminal (it’s under Applications->Utilities). Go to a directory you’d like to install the code in (I use the default which is Users/myusername).
To clone a Github repository you just type:
git clone <URL to repository>
so for us, this is:
git clone https://github.com/llSourcell/gender_classification_challenge.git
This pulls the code down and will make a directory based on the project name (gender_classification_challenge). Now you can cd (change directory) into the gender directory and play with the code like I am going to do!
How to install Git on any OS
![Bash Bash](/uploads/1/1/8/5/118505852/529446661.jpg)
Git can be installed on the most common operating systems like Windows, Mac, and Linux. In fact, Git comes installed by default on most Mac and Linux machines!
Checking for Git
To see if you already have Git installed, open up your terminal application.
- If you're on a Mac, look for a command prompt application called 'Terminal'.
- If you're on a Windows machine, open the windows command prompt or 'Git Bash'.
![Windows10 Windows10](/uploads/1/1/8/5/118505852/524388607.jpg)
Once you've opened your terminal application, type
git version
. The output will either tell you which version of Git is installed, or it will alert you that git
is an unknown command. If it's an unknown command, read further and find out how to install Git.Install Git Using GitHub Desktop
Installing GitHub Desktop will also install the latest version of Git if you don't already have it. With GitHub Desktop, you get a command line version of Git with a robust GUI. Regardless of if you have Git installed or not, GitHub Desktop offers a simple collaboration tool for Git. You can learn more here.
Install Git on Windows
- Navigate to the latest Git for Windows installer and download the latest version.
- Once the installer has started, follow the instructions as provided in the Git Setup wizard screen until the installation is complete.
- Open the windows command prompt (or Git Bash if you selected not to use the standard Git Windows Command Prompt during the Git installation).
- Type
git version
to verify Git was installed.
Note:
git-scm
is a popular and recommended resource for downloading Git for Windows. The advantage of downloading Git from git-scm
is that your download automatically starts with the latest version of Git included with the recommended command prompt, Git Bash
. The download source is the same Git for Windows installer as referenced in the steps above.Install Git on Mac
Most versions of MacOS will already have
Git
installed, and you can activate it through the terminal with git version
. However, if you don't have Git installed for whatever reason, you can install the latest version of Git using one of several popular methods as listed below:Install Git From an Installer
- Navigate to the latest macOS Git Installer and download the latest version.
- Once the installer has started, follow the instructions as provided until the installation is complete.
- Open the command prompt 'terminal' and type
git version
to verify Git was installed.
Note:
git-scm
is a popular and recommended resource for downloading Git on a Mac. The advantage of downloading Git from git-scm
is that your download automatically starts with the latest version of Git. The download source is the same macOS Git Installer as referenced in the steps above.Install Git On Windows
Install Git from Homebrew
Homebrew is a popular package manager for macOS. If you already have Homwbrew installed, you can follow the below steps to install Git:
- Open up a terminal window and install Git using the following command:
brew install git
. - Once the command output has completed, you can verify the installation by typing:
git version
.
Install Git on Linux
Fun fact: Git was originally developed to version the Linux operating system! So, it only makes sense that it is easy to configure to run on Linux.
You can install
Git
on Linux through the package management tool that comes with your distribution.Debian/Ubuntu
- Git packages are available using
apt
. - It's a good idea to make sure you're running the latest version. To do so, Navigate to your command prompt shell and run the following command to make sure everything is up-to-date:
sudo apt-get update
. - To install Git, run the following command:
sudo apt-get install git-all
. - Once the command output has completed, you can verify the installation by typing:
git version
.
Fedora
- Git packages are available using
dnf
. - To install Git, navigate to your command prompt shell and run the following command:
sudo dnf install git-all
. - Once the command output has completed, you can verify the installation by typing:
git version
.
Note: You can download the proper Git versions and read more about how to install on specific Linux systems, like installing Git on Ubuntu or Fedora, in git-scm's documentation.
Other Methods of Installing Git
Looking to install Git via the source code? Learn more here.
Contribute to this article on GitHub.
Git Bash Download Windows 10
Get started with git and GitHub
Review code, manage projects, and build software alongside 40 million developers.