Как удалить переменную среды GIT_SSH в Windows?

2157
Kirby

Я установил MSysGit с настройкой plink как SSH-клиент. Я хочу сбросить это. Я переустановил MSysGit с OpenSSH.
Я все еще вижу plink установленный в GIT_SSH.

$ echo $ D:\prog\plink.exe 

Так как:

Как удалить переменную среды GIT_SSH в Windows?

Я не вижу переменную среди переменных окружения.
sysdm.cpl> Advanced> Environment variables...
UPD другой способ: Control Panel\System and Security\System-> и нажав на кнопку Advanced system settingsв левой панели. Затем нажмите на Environment Variables.

GIT версия: 2.6.2.windows.1
Система: Windows 8.
GIT dir: d: / prog / Git
Никаких дополнительных каталогов Git в

  • Программные файлы
  • Программные файлы (x86)
  • Данные программы

Очевидно, я могу установить GIT_SSH='ssh'в своем файле .bash_profile или .bashrc, и он будет работать нормально.
Но где это? Как полностью это убрать?

1

1 ответ на вопрос

0
Dean Spicer

In Windows you can edit your system's environment variables by opening up the system properties window by navigating to Control Panel\System and Security\System --> and clicking on "Advanced system settings" in the left pane. Then click on "Environment Variables".

My prefered method is to just do a start menu -- or metro screen search -- by typing "environment". You are usually given a choice of editing the "account" variables, or the "system's".

Find the variable in question and edit/delete as you wish.

Only do this if you are sure of the consequences.

Да, такой переменной нет. Я писал об этом `sysdm.cpl> Advanced> Переменные окружения ...`. Kirby 8 лет назад 0