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) (Add "cleanup" tag) |
(fixed markup, etc.) |
||
Line 1: | Line 1: | ||
[[Category:Developing_Qt::Instructions]] | [[Category:Developing_Qt::Instructions]] | ||
'''English''' | [[Git_Installation_Bulgarian|Български]] | '''English''' | [[Git_Installation_Bulgarian|Български]] | ||
== 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 "MacPorts":http://www.macports.org/. After installing MacPorts, do: | ||
< | <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 < | 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 == | ||
Line 24: | Line 20: | ||
For Windows there exists a convenient installer as part of the "Git for Windows project":http://msysgit.github.com/ | For Windows there exists a convenient installer as part of the "Git for Windows project":http://msysgit.github.com/ | ||
'''NOTE''': When the installer presents you with the option of how to put Git into your PATH choose the | '''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 < | 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 "http://git.or.cz/":http://git.or.cz/, unpack the sources, run < | Git is easy to build from source. Just download the latest release from "http://git.or.cz/":http://git.or.cz/, 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>. |
Revision as of 18:31, 3 March 2015
English | Български
Git on Mac OS X
On Mac OS X, you can get Git using "MacPorts":http://www.macports.org/. 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 convenient installer as part of the "Git for Windows project":http://msysgit.github.com/
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 "http://git.or.cz/":http://git.or.cz/, 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.