
#!/usr/bin/expect
set timeout 10
spawn scp /home/chent/admin.tgz root@IP:/home/serverop/
expect "password:"
send "xxxxxxx\r"
interact
1、进入到git项目的根目录下,打开.git目录下的config文件cd.gitvimconfig添加如下内容[credential]helper=store。2、进入项目目录命令:gitconfig--globalcredential.helperstore然后会生成一个本地文件用于记录用户名和密码,这个文件无需关心再次gitpull一下,会让输入用户名和密码。这次输入之后以后就不会每次输入了。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)