Difference between revisions of "Git Installation"

From Qt Wiki
Jump to: navigation, search
(Updated links)
 
(4 intermediate revisions by 3 users not shown)
Line 2: Line 2:
  
 
'''English''' | [[Git_Installation_Bulgarian|Български]]
 
'''English''' | [[Git_Installation_Bulgarian|Български]]
 
= Git Installation =
 
  
 
== Git on Mac OS X ==
 
== Git on Mac OS X ==
  
On Mac OS X, you can get Git using "MacPorts":http://www.macports.org/ . After installing MacPorts, do:
+
On Mac OS X, you can get Git using [http://www.macports.org/ MacPorts]. After installing MacPorts, do:
  
<code><br /> sudo port selfupdate<br /> sudo port sync<br /> sudo port install git-core<br /> add /opt/local/bin to your PATH<br /></code>
+
<pre>
 +
sudo port selfupdate
 +
sudo port sync
 +
sudo port install git-core
 +
add /opt/local/bin to your PATH
 +
</pre>
  
Note that this also adds another ssh into your path. You can safely remove &lt;code&amp;gt;/opt/local/bin/ssh*&lt;/code&amp;gt; &lt;code&amp;gt;/opt/local/bin/scp /opt/local/bin/sftp&amp;lt;/code&amp;gt; (especially if you want to use Leopard'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 Leopard's built-in ssh-agent).
  
 
== Git on Windows ==
 
== Git on Windows ==
  
For Windows there exists a convenient installer as part of the &quot;Git for Windows project&amp;quot;:http://msysgit.github.com/
+
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 third option of putting Git and all its tools 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.
  
 
== Git on Linux ==
 
== 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 &lt;code&amp;gt;git-core&amp;lt;/code&amp;gt;.
+
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 <tt>git-core</tt>.
  
 
== Building Git from Source ==
 
== Building Git from Source ==
  
Git is easy to build from source. Just download the latest release from &quot;http://git.or.cz/&amp;quot;:http://git.or.cz/, unpack the sources, run &lt;code&amp;gt;configure&amp;lt;/code&amp;gt; followed by &lt;code&amp;gt;make&amp;lt;/code&amp;gt; followed by &lt;code&amp;gt;make install&amp;lt;/code&amp;gt;. This will install it locally into your home directory, the binaries end up in &lt;code&amp;gt;$HOME/bin&amp;lt;/code&amp;gt;.
+
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 11:47, 14 July 2017


English | Български

Git on Mac OS X

On Mac OS X, you can get Git using MacPorts. After installing MacPorts, do:

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 Leopard'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.