Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Clone in Mac' fails on GitHub. Takes me to download page every time

I've reinstalled, uninstalled, restarted but "Clone in Mac' on any repository page fails and takes me to the GitHub download page every time.

It was working fine earlier this week but today won't do anything useful.

Any idea why?

like image 290
Bit Rocker Avatar asked Aug 17 '12 18:08

Bit Rocker


People also ask

Why my git clone is not working?

If you have a problem cloning a repository, or using it once it has been created, check the following: Ensure that the user has gone through initial GitCentric login and has the correct username, email, and ssh. This should return a usage message that refers to the config-branch, config-repo, and ls-repo commands.

How do I clone a GitHub repository on a Mac?

On GitHub.com, navigate to the main page of the repository. Above the list of files, click Code. Click Open with GitHub Desktop to clone and open the repository with GitHub Desktop. Follow the prompts in GitHub Desktop to complete the clone.

Does git clone work on Mac?

During development of Node. JS, you may need to clone a GitHub reposity to local mac computer. A repository on GitHub is a remote repository. You can clone the repository to your mac computer in order to create a local copy and sync between the two locations.

Is it better to clone or download in GitHub?

When you download the repo it just gives you all the source files with no . git so you dont have the repo. When you clone you get a copy of the history and it is a functional git repo.


2 Answers

It appears not only do you have to log in to the website, you have to log in to the application once as well so it knows you've got it installed. Then refresh the git repo page and the links will automagically change from the download page to an open-application page.

like image 89
Neil Avatar answered Oct 10 '22 16:10

Neil


I tried the above suggestions of making sure I was logged in to both the site and the Github-Mac application (which I already was) and installing the CLI tools. This didn't fix it for me. After some digging I found this article which explains how it works.

There should be a server listening on your localhost with https://ghconduit.com:25035/status and it should return a json string that looks something like this:

{"capabilities":["status","unique_id","url-parameter-filepath"],"running":true,"server_version":"5"}

In my case I did not get a result so I tried 127.0.0.1 instead of ghconduit.com and that fixed it.

TL;DR: Add an entry for 127.0.0.1 ghconduit.com to your /etc/hosts file and refresh the github page you are on and the clone on desktop function will work.

like image 37
Jason Lindberg Avatar answered Oct 10 '22 14:10

Jason Lindberg