yaleksandr89
@yaleksandr89
PHP developer

Git постоянно вылезает «stdin: is not a tty» (Windows 10), что это?

Здравствуйте.

При попытке совершить какую-либо операцию с репозиторием (push,pull,fetch) постоянно появляется эта надпись:
stdin: is not a tty

Причем операции проходят успешно. С этим собственно и связан вопрос - стоит ли на это обращать внимание?

В похожей вопросе данная ошибка (и ошибка ли это? или просто предупреждение) появлялась при попытке скачать composer, тут же эта надпись появляется при работе с репозиторием и на функциональности никак не отражается.

ОС: Windows 10
Терминал: Git for Windows 2.22.0.windows.1 (64bit)
Репозиторий клонирован с хостинга, которым пользуюсь hostIq
  • Вопрос задан
  • 1947 просмотров
Решения вопроса 1
20ivs
@20ivs
Пользователь пока ничего не рассказал о себе.
By default, when you run a command on the remote machine using ssh, a TTY is not allocated for the remote session. This lets you transfer binary data, etc. without having to deal with TTY quirks. This is the environment provided for the command executed on computerone.

However, when you run ssh without a remote command, it DOES allocate a TTY, because you are likely to be running a shell session. This is expected by the ssh otheruser@computertwo.com command, but because of the previous explanation, there is no TTY available to that command.

If you want a shell on computertwo, use this instead, which will force TTY allocation during remote execution:

ssh -t user@computerone.com 'ssh otheruser@computertwo.com'
This is typically appropriate when you are eventually running a shell or other interactive process at the end of the ssh chain. If you were going to transfer data, it is neither appropriate nor required to add -t, but then every ssh command would contain a data-producing or -consuming command, like:

ssh user@computerone.com 'ssh otheruser@computertwo.com "cat /boot/vmlinuz"'

отсюда

другими словами, не стоит обращать внимания на эту ерунду. либо есть решения как скрыть ее.
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы