Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'middleman init' fails to get files from git #1804

Closed
paulgeisler opened this issue Feb 13, 2016 · 3 comments
Closed

'middleman init' fails to get files from git #1804

paulgeisler opened this issue Feb 13, 2016 · 3 comments

Comments

@paulgeisler
Copy link

This is the process and error message:

$ middleman init
         run  git clone --depth 1 git://github.com/middleman/middleman-templates-default.git /var/folders/0p/_5091nq53ms_9gkhyv56nffw0000gp/T/d20160213-85963-7vxwcs from "."
Cloning into '/var/folders/0p/_5091nq53ms_9gkhyv56nffw0000gp/T/d20160213-85963-7vxwcs'...
fatal: unable to connect to github.com:
github.com[0: 192.30.252.129]: errno=Operation timed out

Git clone command failed. Make sure git repository exists: git://github.com/middleman/middleman-templates-default.git
@paulgeisler
Copy link
Author

This workaround helped me to solve the problem:

Backup your ~/.gitconfig and run this in your terminal

git config --global url."https://github.com".insteadOf git://github.com

It will modify your ~/.gitconfig by adding this lines:

[url "https://github.com"]
    insteadOf = git://github.com

@kidwm
Copy link

kidwm commented Feb 17, 2016

so it does not support SSH?

@sandstrom
Copy link
Contributor

I'm doing some issue-gardening 🌿🌷🌾 and came across this issue.

Sorry that this has lingered for quite a while! I think things are working as intended, and that this issue can be closed. Feel free to disagree and if so a PR with a failing test plus a fix would be a great start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants