- Git Guides
- Get started with git and GitHub
- 1.5 Введение — Установка Git
- Установка Git
- Установка в Linux
- Установка на Mac
- Установка в Windows
- Установка из исходников
- GUI Clients
- GitHub Desktop
- SourceTree
- TortoiseGit
- Git Extensions
- GitKraken
- Magit
- SmartGit
- Tower
- MeGit (based on EGit)
- Sublime Merge
- GitUp
- GitAhead
- ungit
- Fugitive
- GitEye
- LazyGit
- gmaster
- Guitar
- Pocket Git
- Working Copy
- Gitfox
- git-cola
- Cycligent Git Tool
- GitUI
- giggle
- Aurees
- Gitbox
- CodeReview
- Git2Go
- SnailGit
- GitX-dev
- GitBlade
- RepoZ
- GitDrive
- GitFiend
- GitAtomic
- NitroGit
- GitFinder
- Vershd
- GitVine
- PolyGit
Git Guides
How to install Git on any OS
Git can be installed on the most common operating systems like Windows, Mac, and Linux. In fact, Git comes installed by default on most Mac and Linux machines!
Checking for Git
To see if you already have Git installed, open up your terminal application.
- If you’re on a Mac, look for a command prompt application called «Terminal».
- If you’re on a Windows machine, open the windows command prompt or «Git Bash».
Once you’ve opened your terminal application, type git version . The output will either tell you which version of Git is installed, or it will alert you that git is an unknown command. If it’s an unknown command, read further and find out how to install Git.
Install Git Using GitHub Desktop
Installing GitHub Desktop will also install the latest version of Git if you don’t already have it. With GitHub Desktop, you get a command line version of Git with a robust GUI. Regardless of if you have Git installed or not, GitHub Desktop offers a simple collaboration tool for Git. You can learn more here.
Install Git on Windows
- Navigate to the latest Git for Windows installer and download the latest version.
- Once the installer has started, follow the instructions as provided in the Git Setup wizard screen until the installation is complete.
- Open the windows command prompt (or Git Bash if you selected not to use the standard Git Windows Command Prompt during the Git installation).
- Type git version to verify Git was installed.
Note: git-scm is a popular and recommended resource for downloading Git for Windows. The advantage of downloading Git from git-scm is that your download automatically starts with the latest version of Git included with the recommended command prompt, Git Bash . The download source is the same Git for Windows installer as referenced in the steps above.
Install Git on Mac
Most versions of MacOS will already have Git installed, and you can activate it through the terminal with git version . However, if you don’t have Git installed for whatever reason, you can install the latest version of Git using one of several popular methods as listed below:
Install Git From an Installer
- Navigate to the latest macOS Git Installer and download the latest version.
- Once the installer has started, follow the instructions as provided until the installation is complete.
- Open the command prompt «terminal» and type git version to verify Git was installed.
Note: git-scm is a popular and recommended resource for downloading Git on a Mac. The advantage of downloading Git from git-scm is that your download automatically starts with the latest version of Git. The download source is the same macOS Git Installer as referenced in the steps above.
Install Git from Homebrew
Homebrew is a popular package manager for macOS. If you already have Homwbrew installed, you can follow the below steps to install Git:
- Open up a terminal window and install Git using the following command: brew install git .
- Once the command output has completed, you can verify the installation by typing: git version .
Install Git on Linux
Fun fact: Git was originally developed to version the Linux operating system! So, it only makes sense that it is easy to configure to run on Linux.
You can install Git on Linux through the package management tool that comes with your distribution.
- Git packages are available using apt .
- It’s a good idea to make sure you’re running the latest version. To do so, Navigate to your command prompt shell and run the following command to make sure everything is up-to-date: sudo apt-get update .
- To install Git, run the following command: sudo apt-get install git-all .
- Once the command output has completed, you can verify the installation by typing: git version .
- Git packages are available using dnf .
- To install Git, navigate to your command prompt shell and run the following command: sudo dnf install git-all .
- Once the command output has completed, you can verify the installation by typing: git version .
Note: You can download the proper Git versions and read more about how to install on specific Linux systems, like installing Git on Ubuntu or Fedora, in git-scm’s documentation.
Other Methods of Installing Git
Looking to install Git via the source code? Learn more here.
Get started with git and GitHub
Review code, manage projects, and build software alongside 40 million developers.
Источник
1.5 Введение — Установка Git
Установка Git
Прежде чем использовать Git, вы должны установить его на своём компьютере. Даже если он уже установлен, наверное, это хороший повод, чтобы обновиться до последней версии. Вы можете установить Git из собранного пакета или другого установщика, либо скачать исходный код и скомпилировать его самостоятельно.
В этой книге используется Git версии 2.8.0. Хотя большинство используемых нами команд должны работать даже в старых версиях Git, некоторые из них могут не работать или действовать немного иначе, если вы используете старую версию. Поскольку Git отлично справляется с сохранением обратной совместимости, любая версия после 2.8 должна работать нормально.
Установка в Linux
Если вы хотите установить Git под Linux как бинарный пакет, это можно сделать, используя обычный менеджер пакетов вашего дистрибутива. Если у вас Fedora (или другой похожий дистрибутив, такой как RHEL или CentOS), можно воспользоваться dnf :
Если же у вас дистрибутив, основанный на Debian, например, Ubuntu, попробуйте apt :
Чтобы воспользоваться дополнительными возможностями, посмотрите инструкцию по установке для нескольких различных разновидностей Unix на сайте Git https://git-scm.com/download/linux.
Установка на Mac
Существует несколько способов установки Git на Mac. Самый простой — установить Xcode Command Line Tools. В версии Mavericks (10.9) и выше вы можете добиться этого просто первый раз выполнив ‘git’ в терминале.
Если Git не установлен, вам будет предложено его установить.
Если Вы хотите получить более актуальную версию, то можете воспользоваться бинарным установщиком. Установщик Git для OS X доступен для скачивания с сайта Git https://git-scm.com/download/mac.
Установка в Windows
Для установки Git в Windows также имеется несколько способов. Официальная сборка доступна для скачивания на официальном сайте Git. Просто перейдите на страницу https://git-scm.com/download/win, и загрузка запустится автоматически. Обратите внимание, что это отдельный проект, называемый Git для Windows; для получения дополнительной информации о нём перейдите на https://gitforwindows.org.
Для автоматической установки вы можете использовать пакет Git Chocolatey. Обратите внимание, что пакет Chocolatey поддерживается сообществом.
Установка из исходников
Многие предпочитают устанавливать Git из исходников, поскольку такой способ позволяет получить самую свежую версию. Обновление бинарных инсталляторов, как правило, немного отстаёт, хотя в последнее время разница не столь существенна.
Если вы действительно хотите установить Git из исходников, у вас должны быть установлены следующие библиотеки, от которых он зависит: autotools, curl, zlib, openssl, expat, and libiconv. Например, если в вашей системе используется dnf (Fedora) или apt-get (системы на базе Debian), вы можете использовать одну из следующих команд для установки всех зависимостей, используемых для сборки и установки бинарных файлов Git:
Для того, чтобы собрать документацию в различных форматах (doc, html, info), понадобится установить дополнительные зависимости:
Пользователи RHEL и производных от неё (таких как CentOS или Scientific Linux) должны подключить репозиторий EPEL для корректной установки пакета docbook2X
Если вы используете систему на базе Debian (Debian/Ubuntu/Ubuntu-производные), вам так же понадобится установить пакет install-info :
Если вы используете систему на базе RPM (Fedora/RHEL/RHEL-производные), вам так же понадобится установить пакет getopt , который уже установлен в системах на базе Debian:
К тому же из-за различий имён бинарных файлов вам понадобится сделать следующее:
Когда все необходимые зависимости установлены, вы можете пойти дальше и скачать самый свежий архив с исходниками из следующих мест: с сайта Kernel.org https://www.kernel.org/pub/software/scm/git, или зеркала на сайте GitHub https://github.com/git/git/releases. Конечно, немного проще скачать последнюю версию с сайта GitHub, но на странице kernel.org релизы имеют подписи, если вы хотите проверить, что скачиваете.
Затем скомпилируйте и установите:
После этого вы можете получать обновления Git посредством самого Git:
Источник
GUI Clients
Git comes with built-in GUI tools for committing (git-gui) and browsing (gitk), but there are several third-party tools for users looking for platform-specific experience.
If you want to add another GUI tool to this list, just follow the instructions.
GitHub Desktop
Platforms: Mac, Windows Price: Free License: MIT
SourceTree
Platforms: Mac, Windows Price: Free License: Proprietary
TortoiseGit
Platforms: Windows Price: Free License: GNU GPL
Git Extensions
Platforms: Linux, Mac, Windows Price: Free License: GNU GPL
GitKraken
Platforms: Linux, Mac, Windows Price: Free / $29 / $49 License: Proprietary
Magit
Platforms: Linux, Mac, Windows Price: Free License: GNU GPL
SmartGit
Platforms: Linux, Mac, Windows Price: $79/user / Free for non-commercial use License: Proprietary
Tower
Platforms: Mac, Windows Price: $69/user (Free 30 day trial) License: Proprietary
MeGit (based on EGit)
Platforms: Linux, Mac, Windows Price: Free License: EPL2.0
Sublime Merge
Platforms: Linux, Mac, Windows Price: $99/user, $75 annual business sub, free eval License: Proprietary
GitUp
Platforms: Mac Price: Free License: GNU GPL
Platforms: Mac, Windows Price: $49.99, free evaluation License: Proprietary
GitAhead
Platforms: Linux, Mac, Windows Price: Free License: MIT
Platforms: Linux, Windows Price: Free License: GNU GPL
ungit
Platforms: Linux, Mac, Windows Price: Free License: MIT
Fugitive
Platforms: Linux, Mac, Windows Price: Free License: Vim
GitEye
Platforms: Linux, Mac, Windows Price: Free License: Proprietary
LazyGit
Platforms: Linux, Mac, Windows Price: Free License: MIT
gmaster
Platforms: Windows Price: Beta / Free for non-commercial use License: Proprietary
Guitar
Platforms: Linux, Mac, Windows Price: Free License: GNU GPL
Pocket Git
Platforms: Android Price: 1.99€ License: Proprietary
Working Copy
Platforms: iOS Price: Free with in-app purchases License: Proprietary
Gitfox
Platforms: Mac Price: €3.99/m or €24,99/y per user License: Proprietary
git-cola
Platforms: Linux, Mac, Windows Price: Free License: GNU GPL
Cycligent Git Tool
Platforms: Linux, Mac, Windows Price: Free License: Proprietary
GitUI
Platforms: Linux, Mac, Windows Price: Free, but donations welcome License: MIT
giggle
Platforms: Linux Price: Free License: GNU GPL
Aurees
Platforms: Linux, Mac, Windows Price: Free License: Proprietary
Gitbox
Platforms: Mac Price: $14.99 License: Proprietary
CodeReview
Platforms: Linux, Mac, Windows Price: Free License: GNU GPL
Git2Go
Platforms: iOS Price: Free with in-app purchases License: Proprietary
SnailGit
Platforms: Mac Price: $9.99 / Lite version License: Proprietary
GitX-dev
Platforms: Mac Price: Free License: GNU GPL
GitBlade
Platforms: Linux, Mac, Windows Price: Free Lite version, $59.99/user/year for PRO version License: Proprietary
RepoZ
Platforms: Mac, Windows Price: Free License: MIT
Platforms: Windows Price: Free License: Proprietary
GitDrive
Platforms: iOS Price: Free with in-app purchases License: Proprietary
GitFiend
Platforms: Linux, Mac, Windows Price: Free License: Proprietary
GitAtomic
Platforms: Windows Price: 15.00€ License: Proprietary
NitroGit
Platforms: Windows Price: 20€/user / Free for non-commercial use License: Proprietary
GitFinder
Platforms: Mac Price: $24.95 License: Proprietary
Vershd
Platforms: Linux, Mac, Windows Price: Free for personal use, otherwise $37 License: Proprietary
GitVine
Platforms: Linux, Mac, Windows Price: Free License: Proprietary
PolyGit
Platforms: iOS Price: Free with in-app purchases License: Proprietary
There are other great GUI tools available as well. Have a look at the list of interfaces, frontends and tools in the Git Wiki.
Источник