简体   繁体   中英

git clone from script

How can I run 'git clone' from script so it won't prompt for my password?

Is there some way, like entering the password on the same line with git clone?

(I have my own git repository. Not github)

This is about configuring passwordless ssh access to a server, if I understand correctly. Then you will only need to run your script on the machine and under the user that can access this server passwordlessly ( possibly creating a specific limited ssh key for the use of this script ).

You can google for passwordless ssh , look at this previous similar question , or look at how github advises its users to proceed , and adapt this to your server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM