Git Installation: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
'''English''' | [[Git Installation Bulgarian|Български]]
[[Category:Developing_Qt::Instructions]]


=Git Installation=
'''English''' | [[Git_Installation_Bulgarian|Български]]


==Git on Mac OS X==
= Git Installation =


On Mac OS X, you can get Git using [http://www.macports.org/ MacPorts] ''[macports.org]'' . After installing MacPorts, do:
== Git on Mac OS X ==


Note that this also adds another ssh into your path. You can safely remove <code>/opt/local/bin/ssh*</code> <code>/opt/local/bin/scp /opt/local/bin/sftp</code> (especially if you want to use Leopard’s built-in ssh-agent).
On Mac OS X, you can get Git using &quot;MacPorts&amp;quot;:http://www.macports.org/ . After installing MacPorts, do:


==Git on Windows==
<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>


For Windows there exists a convenient installer as part of the [http://msysgit.github.com/ Git for Windows project] ''[msysgit.github.com]''
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).


'''<span class="caps">NOTE</span>''': When the installer presents you with the option of how to put Git into your <span class="caps">PATH</span> choose the third option of putting Git and all its tools into your path!
== Git on Windows ==


==Git on Linux==
For Windows there exists a convenient installer as part of the &quot;Git for Windows project&amp;quot;:http://msysgit.github.com/


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 <code>git-core</code>.
'''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!


==Building Git from Source==
== Git on Linux ==


Git is easy to build from source. Just download the latest release from http://git.or.cz/ ''[git.or.cz]'', unpack the sources, run <code>configure</code> followed by <code>make</code> followed by <code>make install</code>. This will install it locally into your home directory, the binaries end up in <code>$HOME/bin</code>.
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;.


Dependency list (Kubuntu 8.4): <code>libzlcore-dev libssl-dev libcurl4-openssl-dev libexpat1-dev tclx8.3 asciidoc</code>
== Building Git from Source ==


===Categories:===
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;.
 
* [[:Category:Developing Qt|Developing_Qt]]
** [[:Category:Developing Qt::Instructions|Instructions]]

Revision as of 09:05, 24 February 2015


English | Български

Git Installation

Git on Mac OS X

On Mac OS X, you can get Git using "MacPorts&quot;:http://www.macports.org/ . After installing MacPorts, do:

<br /> sudo port selfupdate<br /> sudo port sync<br /> sudo port install git-core<br /> add /opt/local/bin to your PATH<br />

Note that this also adds another ssh into your path. You can safely remove <code&gt;/opt/local/bin/ssh*</code&gt; <code&gt;/opt/local/bin/scp /opt/local/bin/sftp&lt;/code&gt; (especially if you want to use Leopard's built-in ssh-agent).

Git on Windows

For Windows there exists a convenient installer as part of the "Git for Windows project&quot;:http://msysgit.github.com/

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!

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 <code&gt;git-core&lt;/code&gt;.

Building Git from Source

Git is easy to build from source. Just download the latest release from "http://git.or.cz/&quot;:http://git.or.cz/, unpack the sources, run <code&gt;configure&lt;/code&gt; followed by <code&gt;make&lt;/code&gt; followed by <code&gt;make install&lt;/code&gt;. This will install it locally into your home directory, the binaries end up in <code&gt;$HOME/bin&lt;/code&gt;.