Git Installation: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
(Updated links)
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''English''' | [[Git Installation Bulgarian|Български]]
[[Category:Developing_Qt::Instructions]]


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


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


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


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).
<pre>
sudo port selfupdate
sudo port sync
sudo port install git-core
add /opt/local/bin to your PATH
</pre>


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


For Windows there exists a convenient installer as part of the [http://msysgit.github.com/ Git for Windows project] ''[msysgit.github.com]''
== Git on Windows ==


'''<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!
For Windows there exists a [https://git-scm.com/download/win binary installer]


==Git on Linux==
'''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.


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>.
== Git on Linux ==


==Building Git from Source==
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>.


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>.
== Building Git from Source ==


Dependency list (Kubuntu 8.4): <code>libzlcore-dev libssl-dev libcurl4-openssl-dev libexpat1-dev tclx8.3 asciidoc</code>
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>.
 
===Categories:===
 
* [[:Category:Developing Qt|Developing_Qt]]
** [[:Category:Developing Qt::Instructions|Instructions]]

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.