disable interactive prompting
- From
- Ernesto Alfonso <erjoalgo@gmail.com>
- Date
- Oct 4, 2017, 16:10 UTC
- Message-ID
- <87tvzehp13.fsf@gmail.com>
Hi,
Waiting for git-push synchronously slows me down, so I have a bash alias/function to do this in the background. But when my origin is https, I get an undesired interactive prompt. I've tried to disable by redirecting stdin:
git push ${REMOTE} ${BRANCH} &>/dev/null </dev/nullbut I still get an interactive prompt.
Is there a way to either
1. disable interactive prompting 2. programmatically determine whether a git command (or at least a git push) would interactively prompt
Thanks,
Ernesto