nodebb-plugin-xxx.git' did not match any file(s) known to git.



  • Hello there, I contacted with nodebb to make a plugin for me. Because I am not familiar with git, it shows the following

    root@iZ94134cujlZ:/nodebb# cd node_modules/
    root@iZ94134cujlZ:/nodebb/node_modules# git checkout https://github.com/NodeBB/nodebb-plugin-xxx.git
    error: pathspec 'https://github.com/NodeBB/nodebb-plugin-xxx.git' did not match any file(s) known to git.
    

    But I can access it by Chrome (I need to log in github). So I assume I need to log in somewhere, anybody knows? Thank you.



  • Ok. I tried the following

    git config --global user.name "xxx"
    git config --global user.email "xxx@xxx.com"
    
    

    Same problem


  • Global Moderator

    If you are having trouble using a plugin you paid NodeBB to make, I suggest you ask for help from sales@nodebb.org



  • I just thought this minor issue does not deserve a Email asking. Anyway I will contact them.


  • Plugin & Theme Dev Community Rep

    I'm not really sure what you're trying to do here - if you want to copy a repository to a local folder you should use git clone and not git checkout - the latter is used for switching branches and generally moving to a different version of a repository.
    However, got should not be used to install a plugin. NPM is the utility you're looking for. It supports two methods of authentication for GitHub private repositories - OAuth and SSH.

    For OAuth you'll need to generate a personal access token (settings>developer settings>personal access tokens) with permission to read private repositories (just repository permissions if I remember correctly), and then go to the main NodeBB directory and use npm install git+https://<github_token>:x-oauth-basic@github.com/NodeBB/nodebb-plugin-xxx.git

    If you prefer to use SSH instead, follow the instructions here to generate the keys and add to your account, and then run in the main NodeBB folder npm install git+ssh://git@github.com/NodeBB/nodebb-plugin-xxx.git


Log in to reply
 

Suggested Topics

| |