I am using GitHub. I created a repository and cloned it on my Ubuntu machine.
I have made an entry in the .netrc
file as follows:
machine https://github.com/xxx/yyy.git
login xxx
xxx
I am expecting that Git will not ask me for the username and password after this entry in the .netrc
file. But Git prompts for credentials even after this.
Am I missing something?
machine
should just be the host name, without any protocol or path. So in your case justgithub.com
. There is no more fine-grained login definition than on the host name possible with.netrc
. – Conchiolin