Git Extensions Setup

    ENG

    Overview

    Download link: https://github.com/gitextensions/gitextensions/releases/latest
    From Assets you need to take GitExtensions-VersionNumber.msi

    Git Extensions - One of many GUIs for Git. It is an open source and currently has the largest set of functionality such as:

    • Integration with builder
    • Integration with Jira
    • Windows Explorer as SVN
    • Blame, which allows you to work with history

    Among the disadvantages we can highlight:

    • Outdated UI and UX, but this is purely a matter of taste.
    • There is no utility for viewing diff, solved by installing KDiff3 (see Install KDiff3)

    Depending on the version (we always use the most current one and make sure to update unless stated otherwise; this can happen, but it is usually communicated), the installation screens may differ, so it is important to pay attention to the following settings:

    • On the screen Custom Setup
      • Windows Explorer Integration – Must be selected Will be installed on local hard drive
    • On the screen Select SSH Client
      • Must be selected OpenSSH

    Installation procedure for Git Extensions

    Setting up Git Extensions

    1. When you first launch Git Extensions, you will need to select English
      If a window appears Settings - Checklist → Let's move on to point 3
    2. Click Tools, select from the drop-down menu Settings
    3. Expanding the list Git and choose Config
    4. Configure the following fields:
      1. User Name, must match your domain name
      2. User email, must match your corporate email
      3. Mergetool, must be selected kdiff3
      4. After you specify Mergetool you need to click Suggest opposite the Mergetool command
      5. Difftool, must be selected kdiff3
      6. After you specify Difftool you need to click Suggest opposite Difftool command
      7. Line endings, must be selected Checkout Windows-style, commit Unix-style line endings

    5. All in the same Git list select Paths
    6. Setting up the field Command used to run git (git.cmd or git.exe), for that
      1. Click Browse opposite Command used to run git (git.cmd or git.exe)
      2. In the pop-up window, navigate to the folder where Git is installed and the files we are interested in are located. By default, the following folder is used

        C:\Program Files\Git\bin

        And change at the bottom Git.cmd (git.cmd) to Git.exe (git.exe), and then click Open

    7. Select General and check that Defaul pull action is selected Pull - rebase, if not set it

    8. Click Apply → Then OK
    9. In the window Git Extensions press Open repository

    10. In the appearing window, use the Browse button to specify the project folder. If the folder is specified correctly, you will see the following window

    Displaying pipeline statuses

    This method is not recommended. It is better to use the dedicated page https://git.at.dev-my.games/sprw/sprw/-/pipelines to view pipeline statuses


    1. Open Plugin→Plugin Manager

    2. Install the plugin GitExtensions.GitLabPipelinesPlugin

    3. In the window that appears, click on Yes

    4. Wait for installation and close Plugin Manager
    5. Open Git Extension
    6. Select project repository
    7. Open Repository→Repository Settings

    8. In settings go to Git Extensions→Build server integration
    9. Select local settings for the current repository

    10. Place a checkbox on Enable build server integration and remove the checkbox from Show build result page

    11. In Build server type choose GitLab Pipelines

    12. Go to page https://git.at.dev-my.games/-/user_settings/personal_access_tokens (If it doesn’t open, then log in and re-open the link)
    13. On the page, give the token a name (any name), set an expiration date for the token, and select read_api and read_repository

    14. Click on Generate personal access token
    15. Copy the received token
    16. In the Git Extensions settings window (from step 11), add the following fields
      - User token: copied token (from step 15)
      - GitLab server URL: https://git.at.dev-my.games/
      - Project name: sprw/sprw

    17. Apply settings by clicking Apply in the lower right corner of the window and then OK
    18. After this, next to commits that have pipelines (usually after 30 seconds), displays of pipeline statuses will appear

    RUS

    Overview

    Ссылка на скачивание: https://github.com/gitextensions/gitextensions/releases/latest
    Из Assets необходимо взять GitExtensions-НомерВерсии.msi

    Git Extensions - Один из многих GUI для Git. Он open source и на данный момент имеет самый большой набор функционала такого как:

    • Интеграция с билдером
    • Интеграция с джирой
    • Проводник Windows как SVN
    • Blame, позволяющий работа с историей

    Из минусов можно выделить:

    • Устарелый UI и UX, но это сугубо дело вкуса.
    • Отсутствует утилита для просмотра дифа, решается путем установки KDiff3 (смотри Install KDiff3)

    В зависимости от версии (мы используем всегда самую актуальную и не забываем обновляться, если не сказано обратного, такое бывает, но обычно об этом сообщается) экраны установки могут отличаться, по этому важно обратить внимание на следующие настройки:

    • На экране Custom Setup
      • Windows Explorer Integration – Должно быть выбрано Will be installed on local hard drive
    • На экране Select SSH Client
      • Должно быть выбрано OpenSSH

    Процедура установки Git Extensions

    Настройка Git Extensions

    1. При первом запуске Git Extensions, необходимо будет выбрать английский язык
      В случае если возникло окно Settings - Checklist → Переходим к пункту 3
    2. Нажимаем Tools, в выпадающем меню выбираем Settings
    3. Раскрываем список Git и выбираем Config
    4. Настраиваем следующие поля:
      1. User Name, должно соответствовать вашему доменному имени
      2. User email, должно соответствовать вашей корпоративной почте
      3. Mergetool, должен быть выбран kdiff3
      4. После того как укажете Mergetool необходимо нажать Suggest напротив Mergetool command
      5. Difftool, должен быть выбран kdiff3
      6. После того как укажете Difftool необходимо нажать Suggest напротив Difftool command
      7. Line endings, должно быть выбрано Checkout Windows-style, commit Unix-style line endings

    5. Все в том же списке Git выбираем Paths
    6. Настраиваем поле Command used to run git (git.cmd or git.exe), для этого
      1. Нажимаем Browse напротив Command used to run git (git.cmd or git.exe)
      2. Во всплывшем окне проходим в папку где установлен Git и находятся на интересующие нас файлы, по умолчанию используется следующая папка

        C:\Program Files\Git\bin

        И меняем внизу Git.cmd (git.cmd) на Git.exe (git.exe), после чего нажимаем Открыть

    7. Выбираем General и проверяем что Defaul pull action выбран Pull - rebase, если нет выставляем его

    8. Нажимаем Apply → Затем OK
    9. В окне Git Extensions нажимаем Open repository

    10. В появившемся окне, воспользовавшись Browse, указываем папку проекта.
      Если папка указана верно вы увидите следующее окно

    Отображение статусов пайплайнов

    Данный способ не желателен. Лучше пользуйтесь отдельной страницей https://git.at.dev-my.games/sprw/sprw/-/pipelines для просмотра статусов пайплайнов


    1. Открыть Plugin→Plugin Manager

    2. Установить плагин GitExtensions.GitLabPipelinesPlugin

    3. В появившемся окне нажать на Yes

    4. Дождаться установки и закрыть Plugin Manager
    5. Открыть Git Extension
    6. Выбрать репозиторий проекта
    7. Открыть Repository→Repository Settings

    8. В настройках перейти в Git Extensions→Build server integration
    9. Выбрать локальные настройки для текущего репозитория

    10. Поставить чекбокс на Enable build server integration и снять чекбокс с Show build result page

    11. В Build server type выбрать GitLab Pipelines

    12. Перейти на страницу https://git.at.dev-my.games/-/user_settings/personal_access_tokens (если не открывается, то залогиниться и переоткрыть ссылку)
    13. На странице дать название токена (любое), дату окончания действия токена и выбрать read_api и read_repository

    14. Нажать на Generate personal access token
    15. Скопировать полученный токен
    16. В окне настроек Git Extensions (из шага 11) добавить следующие поля
      - User token: скопированный токен (из шага 15)
      - GitLab server URL: https://git.at.dev-my.games/
      - Project name: sprw/sprw

    17. Применить настройки, нажав в правом нижнем углу окна на Apply и после на OK
    18. После этого возле коммитов, которые имеют пайплайны (обычно спустя 30 секунд), появятся отображения статусов пайплайнов