gandalf
gandalf copied to clipboard
docs: How to initialize git repo created by gandalf
Well, follow the tutorial that exists in QuickStart to run Gandalf.
All url's that exist in this tutorial is working, but when I try to do this:
$ mkdir myproject
$ cd myproject
$ git init
$ git remote add gandalf git@localhost:myproject.git
$ touch README
$ git add .
$ git commit -m "first commit"
$ git push gandalf master
raise this:
marioidival@MacBook-Air-de-Mario:~/Development/myproject(master○)
» git push gandalf master
ssh: connect to host localhost port 22: Connection refused
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I watched the collections created and are working properly, including the key ssh.
And in /tmp/repositories/ the myproject was created
@marioidival If you'd like to use Gandalf SSH wrapper, you need to set it up in /etc/gandalf.conf. You also need a SSH server running on port 22 (or on any port you define in the config). Also make sure you have a git user with rw access to those repositories. I'll revise the docs and cover this if it's not so.