I try to pull change from a remote repository but it doesn't work anymore.
When I type git pull
and I enter the password, I'm still getting this stdin: is not a tty
.
This is a screenshot:
I had a similar issue while committing or pushing to github. See log:
$ git push
stdin is not a tty
error: failed to push some refs to https://...
I was able to fix the problem by upgrading the git hooks created by husky:
$ npx husky
I'm using the following versions:
Related issues/pull-requests:
To fix this, add this to your .bashrc
, before sourcing global /etc/.bashrc
, so pretty much the top. This is especially for cpanel shared hosting.
# Prevent "stdin: is not a tty" errors
if [ $(expr index "$-" i) -eq 0 ]; then
return
fi
Not only will the error disappear, you will then also see the output error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With