Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
H How-To
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Jira
    • Jira
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • docs
  • How-To
  • Wiki
  • initial config

initial config · Changes

Page history
Установка Git через менеджер пакетов Chocolatey authored Nov 07, 2016 by Николай Кальгин's avatar Николай Кальгин
Hide whitespace changes
Inline Side-by-side
Showing with 12 additions and 7 deletions
+12 -7
  • initial-config.markdown initial-config.markdown +12 -7
  • No files found.
initial-config.markdown
View page @ 9baaf6be
# Начальная настройка
1. Установить git-клиент с официального сайта (http://git-scm.com/download/win).
2. При установке выбрать опции:
* Use git from the Windows command prompt
* Use OpenSSH
* Checkout Windows-style, commit Unix-style line endings
1. Установка [менеджера пакетов Chocolatey](https://chocolatey.org/)
В стандартной коммандной строке Windows, запущенной с правами администратора, выполнить:
```
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
```
2. Установить git-клиента, в Window PowerShell с правами администратора выполнить:
```
choco install -y git tortoisegit
```
3. Имя, которое будет указано в коммитах (**кто работал с CVS-репозиториями, укажите, пожалуйста, здесь то же имя, что было у вас в CVS. Таким образом мы сохраним преемственность авторов в истории CVS и Git**):
```
git config --global user.name "NAME"
git config --global user.name <Gitlab profile Username>
```
4. E-mail, который будет указан в профиле коммита (желательно e-mail на домене isimplelab.com):
```
git config --global user.email "EMAIL"
git config --global user.email <Gitlab profile Email>
```
5. Автоматическая конвертация символов конца строк:
```
......
Clone repository
  • Work in branches
  • clone ibank
  • create new module
  • create ssh key
  • git essentials
  • initial config
  • remove module
  • submodule basic