How to install plugin in Rails 3 from local git repository or other local source?

I want to install a Rails 3 plugin from a local git repository. I have tried

rails plugin install git:/c/Users/Mike/myplugin

where myplugin is the git repository, but I get a not-found error

  • How to handle dependencies when using git topic branch workflow?
  • “svn up” equivalent of git
  • Eclipse Synchronize Workspace Offline
  • What's the difference between `git reset --hard master` and `git reset --hard origin/master`?
  • Git Revert Error Message?
  • git add all except ignoring files in .gitignore file
  • Plugin not found: ["git:/c/Users/Mike/myplugin"]
    

    I’ve also tried these to commands without success:

    rails plugin install git:/c/Users/Mike/myplugin.git
    rails plugin install /c/Users/Mike/myplugin
    

  • git-tfs clone fails with error code 128
  • Remove credentials from Git
  • How to use docker for deployment and development?
  • How can you remove and then restore non index changes using the stash without ever having merge conflicts in git?
  • Git merging issue
  • Atom files different color after using git-plus
  • One Solution collect form web for “How to install plugin in Rails 3 from local git repository or other local source?”

    What is your setup like? Are you running a git server locally or do you just have a local git repo? As far as I know, this is not valid syntax if you are running a local git server: git:/c/Users/Mike/myplugin

    It should look something like this with the local server address (and git port if you are not running the server thru port 80):

    rails plugin install git://127.0.0.1/myplugin.git
    

    If you don’t already have the git server installed locally, then it would probably be easier just to put it on github (its free) and use the github URL.

    Another option is to just forget about git and copy the plugin to /myapp/vendor/plugins

    cp -R /pathtomyplugin /myapp/vendor/plugins/
    

    If there is anything special in the install.rb, you would need to run that manually.

    Git Baby is a git and github fan, let's start git clone.