How to clone git repository without enter login and password from keyboard

Task: clone git repository in bash script without enter login and password

Implementation:

Use next format:

git clone http://<login>:<password>@server.com/repository.git

Another way is to use ssh protocol and use ssh key to authenticate.

Done.

3 thoughts on “How to clone git repository without enter login and password from keyboard

  1. Hi there, I enjoy reading through your post. I wanted to write a little comment to support you. Holly Terencio Inkster

Leave a Reply

Your email address will not be published. Required fields are marked *

5  +  5  =  

Skynin cache:
Array ( [cache mode] => capture [requestKey] => 122c14c7aa184932a3876d6065a114d951d.sc [skycache_disable_capture] => false )