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 *




Enter Captcha Here :