On Windows, you can also configure git to use Window’s built-in credential management system so that you do not have to type in user/pass to do git operations. I think this mechanism will still work using tokens, but I have not tried it yet, despite GitHub already nagging me about it for the past few months. I’d bet money you can do that same thing on Linux/Mac, but on those platforms, I’ve used front ends for git that I think do that for me.

 

I’m in the opposite boat, I’m a single individual with many git accounts in use on the same machine. I have to setup git so that uses “user/pass 1” for “repo A” and “user/pass 2” for “repo B”. Not only that, but some of my local repo’s have multiple remotes. This GitHub change is sure to be a PITA for me for years to come. I understand their rationale behind it, but when someone gets hacked, it’s going to be because they clicked on a phishing email and that the one thing that is still going to allow a username /password combination. One nice thing about user/pass authentication is that you can embed the user/pass into the url itself for https git operations. That’s not something you would want to do for a “production” workflow, for for one-off things with git, it saves a ton of hassle and setup for something you going to do one time.

 

Setting up your own git central repo isn’t hard, the hardest part is getting the machine itself up and running to host it. I use software called “gitblit” that’s a java-based git server and website interface, that has low system requirements (beyond java), and works on Windows/Linux servers, and works on older machines too. It’s got a lot of GitHub/bitbucket – like features, and it very simple to install/setup.

 

 

 

 

From: Pete Soper via TriEmbed
Sent: Friday, January 29, 2021 11:24 AM
To: [email protected]
Subject: Re: [TriEmbed] GitHub heads up: password logins go away August 13th

 

Sorry to be a chatter box.

With Bitbucket you just put your credentials into the local .git/config
after defining the global git username and email address. I'm 98% sure
if you set up ssh keys for a particular local PC you can bypass having
to enter a password to do a push but I'm too lazy/stupid to do that. I
just flirt with carpal tunnel and trust my fingers to type the password
with close to zero effort.

-Pete


_______________________________________________
Triangle, NC Embedded Computing mailing list

To post message: [email protected]
List info: http://mail.triembed.org/mailman/listinfo/triembed_triembed.org
TriEmbed web site: http://TriEmbed.org
To unsubscribe, click link and send a blank message: mailto:[email protected]?subject=unsubscribe

_______________________________________________
Triangle, NC Embedded Computing mailing list

To post message: [email protected]
List info: http://mail.triembed.org/mailman/listinfo/triembed_triembed.org
TriEmbed web site: http://TriEmbed.org
To unsubscribe, click link and send a blank message: 
mailto:[email protected]?subject=unsubscribe

Reply via email to