简体   繁体   English

在执行 git 拉入 VS 代码时停止登录弹出窗口?

[英]Stop login popup when doing git pull in VS Code?

I use Windows Subsystem for Linux with VS Code and the keychain tool to manage my SSH keys.我使用 Linux 的 Windows 子系统和 VS Code 和钥匙串工具来管理我的 SSH 密钥。 For months I've been able to execute git pull from the command line, using my stored SSH keys to access GitHub without logging in. Suddenly, VS Code started showing a pop-up GitHub login window every time I try to do a git pull . For months I've been able to execute git pull from the command line, using my stored SSH keys to access GitHub without logging in. Suddenly, VS Code started showing a pop-up GitHub login window every time I try to do a git pull .

I've tried setting git.enabled to false in my settings and set both "Git: Terminal Authentication" as well as "GitHub: Git Authentication" to false but I still get the same behavior.我尝试在我的设置git.enabled设置为false并将“Git:终端身份验证”和“GitHub:Git 身份验证”设置为 false,但我仍然得到相同的行为。

Does anyone know how to completely disable this popup window?有谁知道如何完全禁用此弹出窗口 window? 在此处输入图像描述

My problem was that my remotes were https URLs.我的问题是我的遥控器是 https URL。 I did a git remote set-url upstream git@github.com:<myrepositoryname> and then everything worked just fine.我做了一个git remote set-url upstream git@github.com:<myrepositoryname>然后一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM