Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
– The Git website
Choose one of the following options.
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
– The Git website
Choose one of the following options.
Determine on which Linux distribution your system is based on. See List of Linux distributions – Wikipedia for a list. Most Linux systems – including Ubuntu – are Debian-based.
Open a terminal window. Copy & paste the following into the terminal window and hit Return. You may be prompted to enter your password.
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install gitFrom the launchpad git-core ppa
The most current stable version of Git for Ubuntu.
For release candidates, go to https://launchpad.net/~git-core/+archive/candidate. More info: https://launchpad.net/~git-core/+archive/ubuntu/ppa
sudo add-apt-repository ppa:git-core/ppa --yes --update
sudo apt-get install git --yes$ sudo add-apt-repository ppa:git-core/ppa --yes --update
gpg: keyring `/tmp/tmpk8m4os6a/secring.gpg' created
gpg: keyring `/tmp/tmpk8m4os6a/pubring.gpg' created
gpg: requesting key E1DF1F24 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpk8m4os6a/trustdb.gpg: trustdb created
gpg: key E1DF1F24: public key "Launchpad PPA for Ubuntu Git Maintainers" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
$ sudo apt-get install git --yes
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
git-man libpcre2-8-0
Suggested packages:
git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
libpcre2-8-0
The following packages will be upgraded:
git git-man
...
Preparing to unpack .../git_1%3a2.21.0-0ppa1~ubuntu16.04.1_amd64.deb ...
Unpacking git (1:2.21.0-0ppa1~ubuntu16.04.1) over (1:2.7.4-0ubuntu1.6) ...
Preparing to unpack .../git-man_1%3a2.21.0-0ppa1~ubuntu16.04.1_all.deb ...
Unpacking git-man (1:2.21.0-0ppa1~ubuntu16.04.1) over (1:2.7.4-0ubuntu1.6) ...
Selecting previously unselected package libpcre2-8-0:amd64.
Preparing to unpack .../libpcre2-8-0_10.21-1_amd64.deb ...
Unpacking libpcre2-8-0:amd64 (10.21-1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Setting up libpcre2-8-0:amd64 (10.21-1) ...
Setting up git-man (1:2.21.0-0ppa1~ubuntu16.04.1) ...
Setting up git (1:2.21.0-0ppa1~ubuntu16.04.1) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...$ git --version
git version 2.21.0
hub version 2.11.2hub: use GitHub from the command-line
hub is an extension to command-line git that helps you do everyday GitHub tasks without ever leaving the terminal
Hope that helps someone.
Virgil
You can use Git now.
Open a terminal. Copy & paste the following into the terminal window and hit Return. You may be prompted to enter your password.
sudo yum upgrade
sudo yum install gitYou can use Git now.
Homebrew […] simplifies the installation of software on the Mac OS X operating system.
Copy & paste the following into the terminal window and hit Return.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctorYou will be offered to install the Command Line Developer Tools from Apple. Confirm by clicking Install. After the installation finished, continue installing Homebrew by hitting Return again.
Copy & paste the following into the terminal window and hit Return.
brew install gitYou can use Git now.
msysgit) from Git for Windows