I'm creating a node.js CLI to automate my tasks , one of the tasks is git
and the init, add,commit, remote are working just fine now the problem within the push .
Note I use shellJS to execute the commands .
the code I tried is :
shell.exec('git push origin master');
now the problem is I get this error :
bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'https://github.com': Invalid argument
now how to pass the username to the git push ? or simply run the git push from inside out the script I mean when I finish the others tasks I should use something to run the git push like running a bat file (I tried that too).