I want to do this command in one line:
git pull && [my passphrase]
How to do it?
I found one way to supply credentials for a https connection on the command line. You just need to specify the complete URL to git pull and include the credentials there:
git pull https://username:firstname.lastname@example.org/my/repository
You do not need to have the repository cloned with the credentials before, this means your credentials don't end up in
.git/config. (But make sure your shell doesn't betray you and stores the command line in a history file.)