Questions tagged [gist]

Gist is a simple way to share snippets and pastes with others. (Provided by Github.)

Gist is a service created by Github, providing a simple way to share snippets and pastes with others. All gists are git repositories, so they are automatically versioned, forkable and usable as a git repository. Gists can be created anonymously, or associated with your Github account. Gists can also be published as either private or public for sharing.

370 questions
792
votes
10 answers

What is the difference between GitHub and gist?

What is the purpose of gist and how is it different from regular code sharing/maintaining using GitHub?
NSExplorer
  • 11,849
  • 12
  • 49
  • 62
213
votes
6 answers

Can I make a pull request on a gist on GitHub?

Can I make a pull request on some else's gist on GitHub? I'm aware of the fork, clone and commit workflow for a gist I own. I'd like to know if I can request to update someone else's gist with my fork.
Razvan Caliman
  • 4,509
  • 3
  • 21
  • 24
169
votes
11 answers

How do you manage your gists on GitHub?

I love GitHub and their gist service, and that's why I'm keeping a lot of code snippets and even development notes as a gist on my GitHub account. It also makes it easy to share them with my colleagues. The problem is that it doesn't scale!! The…
Allen Bargi
  • 14,674
  • 9
  • 59
  • 58
167
votes
10 answers

Gist: How are images uploaded to a gist?

Here is the image file: https://gist.github.com/mbostock/5503544#file-thumbnail-png I tried to drag-and-drop the image file in the edit mode of a gist. That didn't seem to work in Chrome and FireFox. Update: After back and forth emails with GitHub,…
Dimitry
  • 4,503
  • 6
  • 26
  • 40
138
votes
6 answers

Is it possible to make relative link to image in a markdown file in a gist?

I've got a gist which contains a markdown file and an image. Is there a way to do a relative link to this image? Something like ![My image](image.png) instead of ![My…
alienlebarge
  • 3,008
  • 5
  • 24
  • 26
137
votes
3 answers

How can I change a secret Gist to public?

I've uploaded a Github Gist and I've set it to be secret. Now I want to change the gist to public, but I can't find how to set it public. Could anyone help me about that?
jianfeng
  • 2,440
  • 4
  • 21
  • 28
135
votes
7 answers

How to change the name of a gist in github?

Is there a way to change the name of a gist (github) ?, apparently it is ordering the files of the gist in alphabetical order, an naming the gist according to the file that appears first.
Sebastian Castano
  • 1,491
  • 2
  • 9
  • 8
118
votes
1 answer

How can you create GitHub gists that live under an organization account instead of a personal account?

I manage an organization https://github.com/marklogic. I see we actually have one gist under https://gist.github.com/marklogic/ ; I can't figure out how to get any more gists there though. Is there a way?
Eric Bloch
  • 2,882
  • 2
  • 20
  • 26
112
votes
4 answers

How do I embed a single file from a GitHub gist with the new gist interface?

The new GitHub Gist interface has one embed snippet for the entire gist which embeds all files in the gist. The old interface had embed code for each file in the gist. Anyone know if there's a trick to embed a single file?
Travis Reeder
  • 38,611
  • 12
  • 87
  • 87
109
votes
4 answers

How do you control the order in which files appear in a GitHub gist

Is there a way to control the order in which files appear in a gist? They don't seem to be alphabetical or chronological. I'd like to have a README.md appear as the first file in a multi-file gist, but no amount of "deleting" a file and re-adding it…
Sinetheta
  • 9,189
  • 5
  • 31
  • 52
85
votes
8 answers

How to clone a Github Gist via SSH protocol?

Github really seems to want us to use the HTTPS protocol to use Gists, for example, they only list the HTTPS url on a Gist page - e.g. https://gist.github.com/donatello/5834862 Is it possible to clone a Gist using SSH protocol?
donatello
  • 5,727
  • 6
  • 32
  • 56
73
votes
1 answer

Git gist - Markdown does not work

I am not able to get Markdown work in a gist. My post is available here. Notice that the same Markdown works when I add a comment. What did I miss?
Tarun
  • 3,456
  • 10
  • 48
  • 82
65
votes
6 answers

Transfer gist repo to github

I am working on a small project with gist and since it is growing I would like to put it on github. Let's suppose that: my gist repo is at: https://gist.github.com/1234 my new (empty) repo is at: https://github.com/ChrisJamesC/myNewProject The…
Christopher Chiche
  • 15,075
  • 9
  • 59
  • 98
55
votes
2 answers

How to delete a gist on GitHub?

Is there a way I can remove a gist on GitHub? Created a gist earlier, but don't really want it there anymore.
Svish
  • 152,914
  • 173
  • 462
  • 620
55
votes
3 answers

Github committing (push) gist

I cannot understand this. I have created a gist. Then I run $ mkdir mygist $ cd mygist $ git init $ git pull git@gist.github.com:869085.git Then I add files, change files and try to commit. $ git add . $ git commit -a -m "Better comments" Then I do…
Sergey
  • 561
  • 1
  • 5
  • 3
1
2 3
24 25