Меню Рубрики

Git for mac os

Pro Git

Страницы

пятница, 6 марта 2015 г.

Правильная установка Git на Mac OS X

То, устанавливается не самая последняя версия Git.

Дайте команду в терминале

$ git —version

И если вы увидите что то вроде этого

git version 1.9.3 (Apple Git-50)

то это статья для вас. Если вы видите версию 2.3.1 (на момент написания статьи) последняя была такая, то тогда у вас все хорошо.

И так сперва устанавливаем Homebrew, если он у вас еще не стоит.

Просто скопируйте и вставьте эту строку в терминал и запустите ее.

ruby -e «$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)»

После того как Homebrew установиться дайте в терминале команду

brew install git

После того как Git установится дайте команду

export PATH=/usr/local/bin:$PATH

чтобы прописать путь к новой установке Git.

И далее смотрим версию Git

$ git —verrsion

Должны увидеть что то типа этого

git version 2.3.1

Все! Далее чтобы обновлять Git достаточно дать команду

brew upgrade git

Просто не правда ли!?

Пример обновления Git в Mac OS X 10.10.2 через Homebrew

Вот и получили самую свежую версию Git на Mac OS X

Источник

4 Лучших GIT-клиента для Mac OS X

На данный момент существует много GIT клиентов под разные платформы, буть то Mac, Linux или Windows. Справедливости ради многие могут сказать, а зачем вообще нужны GIT клиенты если есть Терминал? Хороший вопрос, но тут дело вкуса и привычки, каждому свое.

Спешу поделится с вами самыми лучшими GIT приложениями под Mac, по моему мнению.

1 GitHub Desktop — от создателей GitHub’a. Они попытались сделать его максимально простым, но в то же время функциональным и понятным пользователю. Наследует Git Flow, позволяет в 2 клика сделать Pull request, что очень удобно если вы активный участник open source комьюнити. А так же удобный и приятный интерфейс не может не радовать.
Цена: бесплатно
Ссылка: скачать

2 Tower — лучший Git клиент под Mac. Приятный интерфейс, интеграция с многими популярными сервисами. Позволяет не выходя с приложения создать, склонировать уже существующий репозиторий. И многое другое. Рекомендую.
Цена: 69.00$ / 30-дней триал
Ссылка: скачать

3 GitUp — многообещающий проект, который не так давно появился. Полностью open source , что само собой хорошо. Из ключевых особенностей:

  • отменить/повторить последнее действие (так же просто как нажать ctrl+z);
  • снэпшоты — дает вернуться в любую точку сделанного вами изменения;
  • быстрое изменение commit-message. Подробнее о всех возможностях можно прочитать на сайте.
    Цена: б есплатно / open source
    Ссылка:скачать

4 Sourcetree — отличный бесплатный клиент, от компании Атласиан. Очень похож на Tower, о котором я писал выше. Имеет ряд достоинств, среди которых приятный внешний вид и большой набор фич, как для новичка, так и для продвинутых пользователей. Из ключевых особенностей:

  • поддержка git-flow из коробки — это модель ведения git проекта, которая несет в себе определенные правила к созданию бранчей. Очень удобно при работе в команде ;
  • интерактивный ребейз — предоставляет инструмент, который визуально помогает решить проблемы, что возникают при ребейзе;
  • Подробнее о всех возможностях можно прочитать на сайте.
    Цена: б есплатно
    Ссылка:скачать

Источник

derhuerst / intro.md

Installing Git – the easy way

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Choose one of the following options.

Determine on which Linux distribution your system is based on. See List of Linux distributions – Wikipedia for a list. Most Linux systems – including Ubuntu – are Debian-based.

Debian-based linux systems

Open a terminal window. Copy & paste the following into the terminal window and hit Return . You may be prompted to enter your password.

You can use Git now.

Red Hat-based linux systems

Open a terminal. Copy & paste the following into the terminal window and hit Return . You may be prompted to enter your password.

You can use Git now.

Homebrew […] simplifies the installation of software on the Mac OS X operating system.

Copy & paste the following into the terminal window and hit Return .

You will be offered to install the Command Line Developer Tools from Apple. Confirm by clicking Install. After the installation finished, continue installing Homebrew by hitting Return again.

Step 2 – Install Git

Copy & paste the following into the terminal window and hit Return .

You can use Git now.

Источник

Как правильно установить Git на OS X

С установкой Git на OS X есть проблема: он уже установлен в системе и просто так его не обновить. При каждом обновлении ОС устанавливает его заново.

Например, на момент написания этого вопроса, актуальной версией Git является 2.5.1. А в OS X Yosemite зашит 2.3.2.

При установке новой версии через Homebrew она все равно остается недоступной.

1 ответ 1

Установка «с нуля»

Устанавливаем Git, например через Homebrew

Проверяем текущую версию Git

Если вы видите «Apple Git», значит используется старая версия. Проверим, где установлена используемая версия Git.

Точно, эта версия ставится вместе с системой. А та, которая нам нужна, и которая установлена homebrew, находится в /usr/local/bin/git . Почему выбирается не она? Вероятнее всего потому, что путь к ней находится дальше в переменной окружения $PATH .

В переменной $PATH хранятся пути к папкам, разделённые двоеточиями. Когда вы хотите запустить какую-то программу по имени (а не по полному пути), поиск происходит во всех этих папках по очереди, слева направо. Переменная задаётся в файле

/.zshrc и т.п., в зависимости от используемой оболочки). Откройте его и найдите примерно такую строку:

Поставьте /usr/local/bin раньше, чем /usr/bin :

Источник

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!

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

  1. Navigate to the latest Git for Windows installer and download the latest version.
  2. Once the installer has started, follow the instructions as provided in the Git Setup wizard screen until the installation is complete.
  3. Open the windows command prompt (or Git Bash if you selected not to use the standard Git Windows Command Prompt during the Git installation).
  4. 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

  1. Navigate to the latest macOS Git Installer and download the latest version.
  2. Once the installer has started, follow the instructions as provided until the installation is complete.
  3. 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:

  1. Open up a terminal window and install Git using the following command: brew install git .
  2. 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.

  1. Git packages are available using apt .
  2. 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 .
  3. To install Git, run the following command: sudo apt-get install git-all .
  4. Once the command output has completed, you can verify the installation by typing: git version .
  1. Git packages are available using dnf .
  2. To install Git, navigate to your command prompt shell and run the following command: sudo dnf install git-all .
  3. 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.

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

  • Git extensions mac os
  • Git autocomplete mac os
  • Gimp для mac os на русском
  • Gimp for mac os x
  • Gif brewery mac os