Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view Github user content?

Tags:

git

github

I wonder how this HTML file stored on a github repository can be viewed as a regular webpage? Should I change link somehow?

  • github.com -> raw.git.com
  • github.com -> raw.githubusercontent.com

Those above works somehow but does not show the regular version on webpage. Thanks for response.

like image 848
Marcin Kosiński Avatar asked Sep 04 '14 12:09

Marcin Kosiński


People also ask

How do I see user content in GitHub?

If you browse to a file on GitHub and then click the Raw link, that's where you'll go. The URL in your question references the install file in the master branch of the Homebrew/install repository. The rest of that command just retrieves the file and runs ruby on its contents.

How do I get content from GitHub?

To download from GitHub, you should navigate to the top level of the project (SDN in this case) and then a green "Code" download button will be visible on the right. Choose the Download ZIP option from the Code pull-down menu. That ZIP file will contain the entire repository content, including the area you wanted.

How do I view RAW files in GitHub?

Viewing or copying the raw file contentOn GitHub.com, navigate to the main page of the repository. Click the file that you want to view. In the upper-right corner of the file view, click Raw. Optionally, to copy the raw file content, in the upper-right corner of the file view, click .

Can people see if you look at their GitHub?

If your project is hosted on GitHub, you can view how many people land on your project and where they come from. From your project's page, click “Insights”, then “Traffic”. On this page, you can see: Total page views: Tells you how many times your project was viewed.


2 Answers

You can use RawGit for that. Your link would be

https://rawgit.com/MarcinKosinski/Museum/master/chaining.html.

They are not affiliated with GitHub in any way so please be aware of bandwidth restrictions when using the service.

like image 122
musiKk Avatar answered Oct 04 '22 08:10

musiKk


At the time of writing, RawGit is shutting down. Therefore, try using GitHack. Your URL would be:

https://raw.githack.com/MarcinKosinski/Museum/master/chaining.html

And as usual:

GitHack is not associated with GitHub in any way. Please don't contact their support asking for help with raw.githack.com. They'll give you a weird look and back away slowly.

like image 20
Richie Bendall Avatar answered Oct 04 '22 06:10

Richie Bendall