Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I share an entire Git project via Gist?

Tags:

git

gist

I'm writing a tutorial for users of our API, and want to incorporate code snippets and complete files for example purposes. I can expose the entire directory structure as a git, for people to download; no problem. But I'd like to embed specific code on relevant pages in the way that I can via a gist.

I do that by copying each file into gist, pressing "embed", and copying the resulting link into my tutorial page.

However, it seems wasteful to have a git repo all set up with the full files, then have to duplicate it for each file. Is there a better way to do this?

(Alternatively, if there's a way to embed a reference to a specific file from a git, I could do that too--the use case here is to say, "here's the full sample file" so I'd be fine pulling it that way.)

Thanks.

like image 892
Dave Rodger Avatar asked May 15 '11 13:05

Dave Rodger


People also ask

How do I share a GitHub project to another user?

On GitHub.com, navigate to the main page of the repository. Under your repository name, click Settings. Under "Danger Zone", click Transfer. Read the information about transferring a repository, then type the name of the user or organization you'd like to transfer ownership of the repository to.

How do I share an IntelliJ project from GitHub?

You can use IntelliJ IDEA to create a local Git repository and then share the project on GitHub by going to VCS > Share project on GitHub in the menu. This displays the Share Project on GitHub dialog.

What is the difference between Gist and repository?

Gist is a simple way to share snippets and pastes with others. Whereas Repo is simply a place where the history of your work is stored.

Can a GIST have multiple files?

We've always had the ability to embed multiple file gists: Your browser does not support IFrames But today we added the ability to embed specific files in a multi-file gist!… But today we added the ability to embed specific files in a multi-file gist! Enjoy!


1 Answers

There is http://gist-it.appspot.com/

GitHub have this on their "list" but we don't know when it will happen.

like image 99
manojlds Avatar answered Sep 24 '22 12:09

manojlds