0

I'm using a docker container to access a git repo through aws (don't know if that makes any difference). I've tried using a .netrc file in my home dir in the container but it still asks me for username and password when pulling from the git repo.

Is it a problem with the netrc file or am I just going about it the wrong way?

.netrc file:

machine https://git-codecommit.xxx.amazonaws.com
login *login*
password *password*

the netrc file is in the home/main dir in my container but any git pull request still asks for credentials

Zeitounator
  • 38,476
  • 7
  • 53
  • 66
Joe
  • 1
  • You'll need to install a netrc-based credential helper; see [How to authenticate Github on Ubuntu? git: 'credential-netrc' is not a git command](https://stackoverflow.com/q/64480132/1256452). This is probably the wrong way to go though. – torek Nov 13 '22 at 23:29

0 Answers0