[英]shell script to perform git pull. Problems with password
I wrote a shell script to do project releasing with Git which would be integrated n bamboo, in the shell script I first cd to the Git working copy and then do git pull origin master. 我写了一个shell脚本来与Git一起发布项目,该项目将集成到竹子中,在该shell脚本中,我首先CD到Git工作副本,然后执行git pull origin master。 But it prompts me for password: git@localhost's password:Any idea on how to solve this?
但这提示我输入密码:git @ localhost的密码:关于如何解决此问题的任何想法? I already tried using ssh-agent but for some reason ssh-add command does nothing.
我已经尝试过使用ssh-agent,但是由于某种原因ssh-add命令什么也不做。
you need to set your ssh keys. 您需要设置ssh密钥。
https://help.github.com/articles/generating-ssh-keys https://help.github.com/articles/generating-ssh-keys
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.