I'm trying to make a script where I use a command that ask for the user to input some data in the prompt.
Let's say that I want to include
git push in a script (I know it isn't best practice, but everyone is going to understand what I'm asking this way.)
So when you use
git push in the console, it asks for user and password. How can I pass them when
git is called from a shell script, and both are stored as shell variables?
It should look something like
#!/bin/bash git push $user $password