github - 如何在 vscode 中禁用 github 登录

标签 github visual-studio-code

我正在使用 vscode 和 git。但我不想将我的代码发布到 github。 VScode 仍然不断弹出一个窗口,要求我登录 github。如何禁用此功能?

最佳答案

在阅读第一条评论中的链接时,我看到了这个:

// When enabled, commits will automatically be fetched from the default remote of the current Git repository.
"git.autofetch": false,

我查看了 Settings > Extensions > Git 并看到 Autofetch 已启用,并带有一条蓝线,表明它不是默认设置。 我重置了它,现在我不再弹出了。

我收到弹出窗口的原因是因为我的存储库是私有(private)的,并且登录窗口没有“保存”我的登录信息,所以从启动后每 180 秒,VSCode 会尝试访问我的在线 git,然后被拒绝并询问我再次登录每个存储库。

关于github - 如何在 vscode 中禁用 github 登录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62649022/

相关文章:

visual-studio-code - Launch.json : how to reference an environment variable

c# - Visual Studio Code : Using Mono and enabling IntelliSense

python - 如何在visual studio代码中导入pygame?

keyboard-shortcuts - 有没有办法通过 VS Code 中的方法名称启用 Camel 驼峰?

git - 我怎样才能在 git 仓库中链接依赖项?

github - 错误: Undo last git commit on both local and remote

node.js - 我如何从 github 安装 npm 模块并构建它?

android - 如何为 Android 中的每个包编写单个提交消息?

Git 忽略每个分支的文件

VS 代码中的 Git 子模块意识不起作用