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

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -