Questions tagged [github-pages]

GitHub pages are static web pages hosted on GitHub.

GitHub Pages reside inside a repository on . They can be built manually and pushed as the final HTML output, or they can be pushed as a page, which will then be built directly on GitHub.

On August 18, 2016, GitHub made it unnecessary to have a gh-pages branch - now you can select any branch and directory as the source for the documentation.

GitHub differentiates between three types of pages:

  • User pages (Portfolio websites)
  • Organization pages (Websites specific to an Organisation)
  • Project pages (Websites specific to a Project)

Setting up User pages and Organization pages.

  • Create a Repository named username.github.io where 'username' your GitHub username or Organisation name.
  • Edit or create HTML pages and Push it to this newly created Repo.

Setting up Project pages

Lately a website generator was added to GitHub pages which allows you to build a page with just some clicks.

More Resources in GitHub Pages

4865 questions
555
votes
31 answers

Authenticate with GitHub using a token

I am trying to authenticate with GitHub using a personal access token. In the help files at GitHub, it states to use the cURL method to authenticate (Creating a personal access token). I have tried this, but I still cannot push to GitHub. Please…
wayofthefuture
  • 8,339
  • 7
  • 36
  • 53
511
votes
11 answers

How to see an HTML page on Github as a normal rendered HTML page to see preview in browser, without downloading?

On http://github.com developer keep the HTML, CSS, JavaScript and images files of the project. How can I see the HTML output in browser? For example this: https://github.com/necolas/css3-social-signin-buttons/blob/master/index.html When I open this…
Jitendra Vyas
  • 148,487
  • 229
  • 573
  • 852
509
votes
23 answers

How to add color to GitHub's README.md file

I have a README.md file for my project underscore-cli, and I want to document the --color flag. Currently, the only way to do this is with a screenshot (which can be stored in the project repository): But screenshots aren't text, preventing readers…
Dave Dopson
  • 41,600
  • 19
  • 95
  • 85
337
votes
9 answers

Hosting a Maven repository on github

I have a fork of a small open sourced library that I'm working on github. I'd like to make it available to other developers via maven, but I don't want to run my own Nexus server, and because it's a fork I can't easily deploy it to…
emmby
  • 99,783
  • 65
  • 191
  • 249
270
votes
13 answers

Private pages for a private Github repo

Couldn't find anything in the github documentation and also here on SO. But I was wondering if there could be a http://foo.github.com for a private repository named foo which is accessible only one had access to the foo repository itself. I remember…
kashyap
  • 5,258
  • 3
  • 16
  • 11
254
votes
45 answers

How to fix HTTP 404 on Github Pages?

Here is my GitHub repository on the gh-pages branch. Everything looks good, I have my index.html, my CSS, JS and pictures folders. But when I access http://roine.github.com/p1 I get HTTP 404 not found. Any explanation and solution?
Jonathan de M.
  • 9,721
  • 8
  • 47
  • 72
230
votes
12 answers

How to add Google Analytics Tracking ID to GitHub Pages

Could be a simple question but I am full of doubts right now about adding Google Analytics Tracking ID to GitHub page. I am using GitHub automatic page generator to create my GitHub page but it asks for "Google Analytics Tracking ID". I tried to…
exexzian
  • 7,782
  • 6
  • 41
  • 52
226
votes
7 answers

Why call git branch --unset-upstream to fixup?

I'm more of a novice when it comes to advanced operations in git. I maintain my blog using the blogging framework Octopress. Though Octopress is not under any development since 2011, it serves my purpose well and so I haven't thought of changing…
Jatin Ganhotra
  • 6,825
  • 6
  • 48
  • 71
218
votes
21 answers

Is there a link to GitHub for downloading a file in the latest release of a repository?

Using GitHub's Release feature, it is possible to provide a link to download a specific version of the published software. However, every time a release is made, the gh-page also needs to be updated. Is there a way to get a link to a specific file…
Christian Rondeau
  • 4,143
  • 5
  • 28
  • 46
171
votes
9 answers

Can I create more than one repository for GitHub Pages?

I created a repository for hosting a blog on GitHub. Is there any way that I can create additional repositories to host multiple blogs, or am I limited to just one since username.github.io can only be used once?
Akshat Jiwan Sharma
  • 15,430
  • 13
  • 50
  • 60
155
votes
8 answers

How to publish a website made by Node.js to Github Pages?

I made a website using Node.js as the server. As I know, the node.js file should start working by typing commands in terminal, so I'm not sure if Github Pages supports node.js-hosting. So what should I do?
dyzdyz010
  • 2,256
  • 3
  • 16
  • 17
147
votes
48 answers

GitHub pages are not updating

I'm running into a weird issue with GitHub pages. I pushed a new commit to my personal pages page maltzj.github.io, but the new article isn't showing up there. When I execute the server locally, a post lives at…
Jonathan
  • 3,369
  • 4
  • 22
  • 27
139
votes
12 answers

How to force GitHub Pages build?

Every GitHub repository can have (or be) a GitHub Pages website, that can be built with Jekyll. GitHub builds the site every time you push a new commit. Is there a way to force the refresh of the Github Pages website without pushing a new commit?
Pierre Prinetti
  • 9,092
  • 6
  • 33
  • 49
134
votes
4 answers

How long does it take for GitHub page to show changes after changing index.html

I am just wondering how long does it take for GitHub page to show the new items that I have added to the repository. I changed index.html but after 10 minutes it still showed up the previous page...
MYjx
  • 4,157
  • 9
  • 38
  • 53
124
votes
1 answer

Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g

Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes. I was trying to push local octopress blog to remote branch. But its saying above error. another is: Do i have to…
alpha9eek
  • 1,439
  • 3
  • 11
  • 10
1
2 3
99 100