4 ms·
"Otherwise, you will have to authenticate with Github each time you push a branch." It is possible to easily automate HTTP authentication in git by including t
by aikinai 13y ago
"Otherwise, you will have to authenticate with Github each time you push a branch."
It is possible to easily automate HTTP authentication in git by including the credentials on a .netrc file in your home directory. It should look something like:
machine example.com
login username_here
password password_here
Of course it's unfortunate that you have to have your password in plain text, but it works.
- bradleyland 13y agoSSH keys and SSH agent are intended to solve the exact scenario in your caveat :) 1) No password stored in plain text 2) Still secure without having to enter your password every time
- aikinai 13y agoOf course SSH is better all around, but the article was saying that you'd have to authenticate every time you push if you use the HTTP link which isn't really true.