How to clone a repository in Bitbucket using a bash code and pass the password as a parameter?

0

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

Normally what I do manually are these steps:

  • cd $HOME/vhosts - I position myself inside the folder where I want to clone the repository
  • Clone - git clone https://[email protected]/myusr/prjct.git
  • The requested password. Enter password.
  • Press btn enter.
  • The clone was successful.
  • For the process to become automated I need to skip steps 3 and 4.

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

        
    asked by anonymous 14.01.2018 / 16:17

    1 answer

    0

    I think you have to change something in .git / config. But I found these sites on the internet that can help you:

    link

    a>

        
    14.01.2018 / 16:47