Инструменты пользователя

Инструменты сайта


git._ustanovka_i_nastrojka

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слеваПредыдущая версия
Следующая версия
Предыдущая версия
git._ustanovka_i_nastrojka [2017/01/01 20:56] – [Настройка] daniilgit._ustanovka_i_nastrojka [Дата неизвестна] (текущий) – внешнее изменение (Дата неизвестна) 127.0.0.1
Строка 51: Строка 51:
  
 ==== Имя пользователя и почтовый ящик ==== ==== Имя пользователя и почтовый ящик ====
-<code git>+<code bash>
 git config --global user.name "John Doe" git config --global user.name "John Doe"
 git config --global user.email johndoe@example.com git config --global user.email johndoe@example.com
Строка 57: Строка 57:
  
 ==== Выбор редактора ==== ==== Выбор редактора ====
-<code git+<code bash
-git config --global core.editor vim+git config --global core.editor vim      # Vim 
 +git config --global core.editor emacs    # Emacs 
 +git config --global core.editor nano     # Nano
 </code> </code>
  
 ==== Утилита сравнения ==== ==== Утилита сравнения ====
-<code git>+<code bash>
 git config --global merge.tool vimdiff git config --global merge.tool vimdiff
 +</code>
 +==== Алиасы ====
 +
 +=== Поддержка цветов ===
 +
 +<code bash>
 +git config --global color.branch auto
 +git config --global color.diff auto
 +git config --global color.interactive auto
 +git config --global color.status auto
 +</code>
 +
 +=== Псевдонимы для команд Git ===
 +
 +<code bash>
 +git config --global alias.co checkout
 +git config --global alias.ci commit
 +git config --global alias.st status
 +git config --global alias.br branch
 +git config --global alias.type cat-file -t
 +git config --global alias.dump cat-file -p
 </code> </code>
  
 ==== Проверка настроек ==== ==== Проверка настроек ====
-<code git+<code bash
-git config --list+git config --list            # Всех (глобальных, системных и локальных) 
 +git config --local --list    # Локальных для определенного проекта 
 +git config --system --list   # Системных
 </code> </code>
  
Строка 75: Строка 100:
 ===== Источник ===== ===== Источник =====
  
-  * [[https://git-scm.com/book/ru/v1|git-scm.com]]+  * [[https://git-scm.com/book/ru/v2Pro Git (2nd Edition 2014 Rus)]]
  
git._ustanovka_i_nastrojka.1483293395.txt.gz · Последнее изменение: 2017/01/01 00:00 (внешнее изменение)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki