Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Github has a 'Clone in Mac' button for repos:

Does anyone know any bookmarklet or Chrome Extension to be able to do the same for gists?

share|improve this question
up vote 1 down vote accepted

The URL of the button is:


Since Gists are repositories too, the URL for Gists would be:


Thus, your Javascript code is:

window.location = "github-mac://openRepo/" + document.location.href

And your bookmarklet code:


To create this bookmarklet, simply go to Bookmarks Manager (or ⌥⌘B), and add your link:

This will now work for all Git repositories, even the normal ones.

share|improve this answer
Excellent! thx you! – abernier Aug 1 '12 at 13:17
See my answer I made a userscript for this with your instructions. Works like a charm. I've validated your answer. – abernier Aug 1 '12 at 14:21

I made a userscript to automatically add 'Clone in Mac' button on gists.

enter image description here

And of course, you can clone it in Mac :p

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .