Git Submodule - Permission Denied

后端 未结 9 1272
长发绾君心
长发绾君心 2021-02-03 20:44

I am not able to clone the submodule existing within my private git repository. I do have access to entire repository,

Have used the below commands but dint work, pleas

9条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-03 21:42

    Had the same problem with TortoiseGit / Windows subsystem for Linux / GitBash. The solution is to use authentication via an agent (key) instead of password.

    For TortoiseGit:

    • run Pageant
    • add your key
    • enter password
    • TortoiseGit menu -> submodule update ...

    (without pageant git clone it asks for password and works as intended, but git update fails with error)

    For WS4L:

    $ eval `ssh-agent -s`
    $ chmod 600 /path/to/key
    $ ssh-add /path/to/key
    

    proceed with git submodule update

提交回复
热议问题