1

I want to update many repos with a loop in bash:

for dir in *; do ( cd $dir; git pull origin master ); done

Although there are many similar questions as

git just allows to set credentials by

Why is there no "--password" option as e.g. in mysql command line? This would help a lot for automating git tasks on the fly.

Is that a planned git feature and already on the roadmap or do we have to stick with the option given today for a long time?

Is there a workaround to specify the password e.g. using piping mechanisms?

Community
  • 1
  • 1
WeSee
  • 3,158
  • 2
  • 30
  • 58

1 Answers1

1

Because password would be stored in your history (type history in your cmd) and would be easy to steal. You want to store password in plaintext.

agilob
  • 6,082
  • 3
  • 33
  • 49
  • I know this and this is ok. Our deployment credentials are wellknown in the team and we use commands like this in mysql cli interface, too. – WeSee Aug 25 '16 at 13:54