Is there any way to redirect terminal input to stdin when pushing as below?
$ git push origin master
Username for 'https://github.com':
Then I can pass my username/password through stdin.
For example, in linux based systems, the sudo
command always read the password from terminal but if you provide it with a -S
flag then it will read the password from stdin.
I'm just curious if there is any similar flag in git
command?
NOTE: My question is just about redirecting input of git
command to stdin and I don't care about security or any other thing.