Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.
Git Installation: Difference between revisions
AutoSpider (talk | contribs) (Convert ExpressionEngine links) |
m (→Git on macOS) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
'''English''' | [[Git_Installation_Bulgarian|Български]] | '''English''' | [[Git_Installation_Bulgarian|Български]] | ||
== Git on | == Git on macOS == | ||
On | On macOS, you can get Git using [https://brew.sh Homebrew]. | ||
If you don't have Homebrew installed install it with | |||
<pre> | |||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |||
</pre> | |||
Then install Git with | |||
<pre> | |||
brew install git | |||
</pre> | |||
(Do not use sudo or such.) | |||
If you are already using [http://www.macports.org/ MacPorts], or prefer MacPorts over Homebrew, you can also use that instead of Homebrew: | |||
<pre> | <pre> | ||
sudo port selfupdate | sudo port selfupdate | ||
Line 13: | Line 25: | ||
add /opt/local/bin to your PATH | add /opt/local/bin to your PATH | ||
</pre> | </pre> | ||
Note that this also adds another ssh into your path. You can safely remove <tt>/opt/local/bin/ssh*</tt> <tt>/opt/local/bin/scp /opt/local/bin/sftp</tt> (especially if you want to use macOS's built-in ssh-agent). | |||
Note that this also adds another ssh into your path. You can safely remove <tt>/opt/local/bin/ssh*</tt> <tt>/opt/local/bin/scp /opt/local/bin/sftp</tt> (especially if you want to use | |||
== Git on Windows == | == Git on Windows == | ||
For Windows there exists a | For Windows there exists a [https://git-scm.com/download/win binary installer] | ||
'''NOTE''': When the installer presents you with the option of how to put Git into your PATH choose the second option of putting only Git commands into your path. | '''NOTE''': When the installer presents you with the option of how to put Git into your PATH choose the second option of putting only Git commands into your path. | ||
Line 28: | Line 39: | ||
== Building Git from Source == | == Building Git from Source == | ||
Git is easy to build from source. Just download the latest release from [ | Git is easy to build from source. Just download the latest release from [https://git-scm.com/ https://git-scm.com/], unpack the sources, run <tt>configure</tt> followed by <tt>make</tt> followed by <tt>make install</tt>. This will install it locally into your home directory, the binaries end up in <tt>$HOME/bin</tt>. |
Latest revision as of 09:01, 17 September 2020
English | Български
Git on macOS
On macOS, you can get Git using Homebrew. If you don't have Homebrew installed install it with
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Then install Git with
brew install git
(Do not use sudo or such.)
If you are already using MacPorts, or prefer MacPorts over Homebrew, you can also use that instead of Homebrew:
sudo port selfupdate sudo port sync sudo port install git-core add /opt/local/bin to your PATH
Note that this also adds another ssh into your path. You can safely remove /opt/local/bin/ssh* /opt/local/bin/scp /opt/local/bin/sftp (especially if you want to use macOS's built-in ssh-agent).
Git on Windows
For Windows there exists a binary installer
NOTE: When the installer presents you with the option of how to put Git into your PATH choose the second option of putting only Git commands into your path.
Git on Linux
All major Linux distributions offer up-to-date packages of Git. Use your distribution specific package manager to install Git. Note that on Debian based distributions the Git package is actually called git-core.
Building Git from Source
Git is easy to build from source. Just download the latest release from https://git-scm.com/, unpack the sources, run configure followed by make followed by make install. This will install it locally into your home directory, the binaries end up in $HOME/bin.