Highly annoying: Sign in with browser prompt

55 views
Skip to first unread message

Tall Navy Guy

unread,
Dec 19, 2023, 4:18:57 PM12/19/23
to git-for-windows
Hi all,

I realize the need for security and all, and I've used the ability to store Git credentials on my Windows 10 environment.  However, I am running into the Git "sign in with your browser" snotty gram halfway through the overnight back up script I run to sync up my code with my remote repos.

I kick off the script at, say, 1930 hours and then I wake up and come back into the office at 0600 the next morning, only to find my script stopped halfway through because there is a pop-up message asking me for credentials and to sign in with my browser, which means my script has been waiting on pause for about 10 hours or so while my computer was unattended.

This only just started happening as of 2.42.0. 

Is there any way to suppress the snotty gram?

Regards,


Brian Hart

Reto

unread,
Dec 20, 2023, 12:44:09 AM12/20/23
to Tall Navy Guy, git-for-windows
On Tue, Dec 19, 2023 at 04:58:45AM -0800, Tall Navy Guy wrote:
> I kick off the script at, say, 1930 hours and then I wake up and come back
> into the office at 0600 the next morning, only to find my script stopped
> halfway through because there is a pop-up message asking me for credentials
> and to sign in with my browser, which means my script has been waiting on
> pause for about 10 hours or so while my computer was unattended.

Not sure what else you think it should do, if it needs creds and doesn't have them
the remote won't accept anything from you.

> Is there any way to suppress the snotty gram?

Setup your credential-helper properly?
git for windows uses GCM by default: https://github.com/git-ecosystem/git-credential-manager

That should cache your credentials after the first log in, providing you with an OAUTH
refresh token that should then just work.
Reply all
Reply to author
Forward
0 new messages