linux - Store credentials for git commands using HTTP -
i store git credentials git pulls permenantly on linux machine, , git credential.helper doesn't work ( think because i'm not using ssh ) - error "fatal: not read password 'http://....': no such device or address". given i'm not administrator of repository , http allowed authentication, , fortunately don't care safety of password. can put git pull command in bash file , avoid prompting user password?
i hope there way around it.
i'm assuming repository requires authentication pulls, or else git wouldn't ask password pull.
the recommended way bypass user password prompt create ssh key on machine, add public key git server, use ssh url remote instead of http/s url. since said:
i don't care safety of password
you can specify password inline git pull this:
git pull http://username:password@mygithost.com/my/repository
Comments
Post a Comment