Live data from Hacker News

Git Tips for Beginners Interested in Open Source

markjberger.com

31–32 of 32 posts

Re: Git Tips for Beginners Interested in Open Source

#31
post #19

"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.

SSH 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

Re: Git Tips for Beginners Interested in Open Source

#32
post #19

"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.

SSH 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

Of 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.
Post reply on HN