【问题标题】:Visual Studio Code git push access deniedVisual Studio Code git push 访问被拒绝
【发布时间】:2020-09-19 13:33:35
【问题描述】:

我有一个带有 git 存储库的 NAS。 使用 pycharm,我可以从这个 NAS 存储库中推送、拉取、克隆等

但是,在 Visual Studio Code 中将 NAS 添加到 git 界面时,我没有被要求输入密码并且访问被拒绝。

ssh://user@192.168.0.120/volume1/git_repos/my_app

> git push NAS master
Permission denied, please try again.
Permission denied, please try again.
xxxx@192.168.0.120: Permission denied (publickey,password).
fatal: Could not read from remote repository.

我还尝试将密码放在 url 中,例如:ssh://user:password@192.168.0.120/volume1/git_repos/my_app

如何让 VS 代码询问密码?

【问题讨论】:

    标签: git visual-studio-code


    【解决方案1】:

    请运行此命令行git config user.password "your password" 设置您的密码,然后重试。

    【讨论】:

      猜你喜欢
      • 2019-01-11
      • 2021-11-07
      • 1970-01-01
      • 2016-10-30
      • 2014-06-15
      • 2016-06-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多