How to clone from a Bitbucket repository using bash code and passing the password as a parameter?

Asked

Viewed 893 times

0

I have a bash code that creates a server instance in AWS. The last step of this process is to clone the project that is in the bitbucket.org.

Usually what I do manually are these steps:

  1. cd $HOME/vhosts - position myself inside the folder where I want to clone the repository
  2. Clone - git clone https://[email protected]/myusr/prjct.git
  3. The requested password. Enter password.
  4. Press btn enter.
  5. The clone was successfully made.

For the process to become automated I need to skip steps 3 and 4.

I was wondering if you have any way to automate this process without using ssh. There are no options to pass parameters in the function git clone.

1 answer

0


  • in fact the answer is no on the second link. http://username:[email protected]/... worked. Edit your answer.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.