ScAlAn

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.

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

Leave a Reply

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