Hi I am writing a bit of python which runs command line commands. These commands then require a password and it doesnt seem to be working properly. Here is a code example:
os.system('git fetch --all')
os.system('password')
os.system('git reset --hard origin/dev')
so after running get fetch -all
it requires a password and I was wondering how to enter that? I understand why my code isn't working, I am guessing it isn't entering the password, it is trying to run a new command password
which obviously doesn't make sense.
I imagine it is something simple but I just cant seem to figure it out I appreciate any help :)