Git Download Mac Os X Using Terminal Updated

Git Download Mac Os X Using Terminal

Before you lot start using Git, you have to make it available on your figurer. Even if it's already installed, information technology's probably a good thought to update to the latest version. Y'all can either install it every bit a packet or via another installer, or download the source code and compile it yourself.

Installing on Linux

If you desire to install the basic Git tools on Linux via a binary installer, you tin can more often than not do so through the package management tool that comes with your distribution. If you're on Fedora (or any closely-related RPM-based distribution, such as RHEL or CentOS), you can employ dnf:

            $ sudo dnf install git-all          

If you're on a Debian-based distribution, such as Ubuntu, try apt:

            $ sudo apt install git-all          

For more options, in that location are instructions for installing on several different Unix distributions on the Git website, at https://git-scm.com/download/linux.

Installing on macOS

There are several means to install Git on a Mac. The easiest is probably to install the Xcode Command Line Tools. On Mavericks (10.nine) or above you tin can exercise this simply by trying to run git from the Concluding the very first time.

If you don't have information technology installed already, it will prompt you to install it.

If you want a more than up to engagement version, you can also install it via a binary installer. A macOS Git installer is maintained and available for download at the Git website, at https://git-scm.com/download/mac.

Git macOS installer

Figure seven. Git macOS Installer

Installing on Windows

There are also a few ways to install Git on Windows. The most official build is available for download on the Git website. Just go to https://git-scm.com/download/win and the download will start automatically. Notation that this is a project called Git for Windows, which is separate from Git itself; for more information on it, go to https://gitforwindows.org.

To get an automated installation you can utilise the Git Chocolatey bundle. Annotation that the Chocolatey package is community maintained.

Installing from Source

Some people may instead find it useful to install Git from source, because you lot'll become the near recent version. The binary installers tend to be a bit behind, though as Git has matured in recent years, this has made less of a difference.

If y'all practise want to install Git from source, you need to have the following libraries that Git depends on: autotools, whorl, zlib, openssl, expat, and libiconv. For instance, if you're on a system that has dnf (such as Fedora) or apt-get (such as a Debian-based system), you lot can apply one of these commands to install the minimal dependencies for compiling and installing the Git binaries:

            $ sudo dnf install dh-autoreconf curl-devel expat-devel gettext-devel \   openssl-devel perl-devel zlib-devel $ sudo apt-get install dh-autoreconf libcurl4-gnutls-dev libexpat1-dev \   gettext libz-dev libssl-dev          

In order to be able to add the documentation in diverse formats (medico, html, info), these boosted dependencies are required:

            $ sudo dnf install asciidoc xmlto docbook2X $ sudo apt-get install asciidoc xmlto docbook2x          

Note

Users of RHEL and RHEL-derivatives like CentOS and Scientific Linux volition have to enable the EPEL repository to download the docbook2X package.

If y'all're using a Debian-based distribution (Debian/Ubuntu/Ubuntu-derivatives), y'all also need the install-info packet:

            $ sudo apt-get install install-info          

If yous're using a RPM-based distribution (Fedora/RHEL/RHEL-derivatives), yous also need the getopt package (which is already installed on a Debian-based distro):

            $ sudo dnf install getopt          

Additionally, if you're using Fedora/RHEL/RHEL-derivatives, you demand to practice this:

            $ sudo ln -s /usr/bin/db2x_docbook2texi /usr/bin/docbook2x-texi          

due to binary name differences.

When you take all the necessary dependencies, you can go alee and grab the latest tagged release tarball from several places. You can get information technology via the kernel.org site, at https://www.kernel.org/pub/software/scm/git, or the mirror on the GitHub website, at https://github.com/git/git/releases. It'due south generally a little clearer what the latest version is on the GitHub folio, only the kernel.org page also has release signatures if you lot want to verify your download.

And then, compile and install:

            $ tar -zxf git-2.8.0.tar.gz $ cd git-two.8.0 $ brand configure $ ./configure --prefix=/usr $ brand all md info $ sudo make install install-doc install-html install-info          

After this is done, you can as well get Git via Git itself for updates:

            $ git clone git://git.kernel.org/pub/scm/git/git.git          

Git Download Mac Os X Using Terminal

Posted by: markcumpoing.blogspot.com

Post a Comment

0 Comments