Skip to main content
Share Your Experience: Take the 2024 Developer Survey
14 votes

Automatically Trigger Git Pull For Website On Github Push

Serving your site from a git "working directory" is considered bad practice - see reasons here and here. The best way to do this is to set up a "bare" git repo on your server with a "post-receive" ...
DisgruntledGoat's user avatar
11 votes
Accepted

Automatically Trigger Git Pull For Website On Github Push

Okay have managed to figure this one out. Turns out there is no native feature in Git to trigger a remote fetch (as in pushing code to the repository and having the repository trigger a pull origin on ...
Chris Rutherfurd's user avatar
5 votes

"GitHub Pages currently does not support IPv6" when using my domain registered at Google domains

You've setup AAAA record(which is used for IPV6) instead of A records, that's why github display error that we don't have IPV6 address but still you're using AAAA record. To setup A records simply ...
Goyllo's user avatar
  • 5,507
5 votes
Accepted

CloudFlare DNS: How to setup a GitHub Repository to a custom sub domain?

This can easily be done by adding a few settings to CloudFlare and then later GitHub. 7 Steps on adding a subdomain to CloudFlare Login to Cloudflare Use the drop-down menu in the upper left of your ...
Simon Hayter's user avatar
4 votes

Is gzip compression available for GitHub pages?

besides Dan's answer, depending on your static-site generators, there can be some plugins that make the compressed .gz-ed version offline while generating the site. By that way, your server can serve ...
kmonsoor's user avatar
  • 141
4 votes
Accepted

A way to exclude Jekyll from some pages on Github?

You'd want to make use of the exclude directive in your_config.yml file. Have a look at Jekyll's global configurables. Exclude directories and/or files from the conversion. These exclusions are ...
James Stewart's user avatar
4 votes
Accepted

How do I share my site so it is available to people looking at my resume, but not on search engines?

You can use any host you like to host your website (siteground, godaddy, bluehost etc.). What you should do to prevent your site appearing in search results and therefore to the world is: You have two ...
pierostz's user avatar
  • 355
3 votes

How do Github Pages fare for serving static files?

As of 2018 GitHub Pages fully supports HTTPS, even for custom domains. GitHub Pages also now uses a CDN, which is currently provided by Fastly. So anything you host on GitHub Pages today will be ...
Maximillian Laumeister's user avatar
3 votes

Custom domain GitHub and HostGator

You do not need to change the DNS. If you did that, the CNAME and A records would be pushed to be handled by Github, and that is not how it works. Add a CNAME file to your repository in the GitHub ...
norcal johnny's user avatar
3 votes

How can I redirect both HTTP and HTTPS for a domain hosted on 1and1 to GitHub?

This is what I understand: You have a github page foo.github.io Your domain example.com is redirected to foo.github.io via an A Record with github-provided IP Address. By this, when using URL ...
DavChana's user avatar
  • 330
3 votes
Accepted

Putting a Github Pages site onto a custom domain causes css to go missing?

Your baseurl in your _config.yml needs to be cleared, since you are no longer serving from a subfolder. I've submitted a pull request that fixes it.
Maximillian Laumeister's user avatar
3 votes
Accepted

SEO on GitLab/GitHub Pages

Interesting question, because we are indeed seeing more Github results seeping into SERP's. While Github and Gitlab aren't exactly SEO-focused (no amazing SEO tool suite), as they were not originally ...
Henry Visotski's user avatar
3 votes
Accepted

Wildcard redirects for some paths but not others in Google Domains

It isn't possible to set up redirects for some paths but not others using your domain registrar or DNS host. You have to implement any redirects on your web host (github pages). In fact, it isn't ...
Stephen Ostermiller's user avatar
3 votes

Suggestions for tracking a MediaWiki wiki with Git version control?

It's a good impulse, what you're trying to do. You just need to scale back your expectations about what all gets tracked by Git. Because LocalSettings.php is the main thing, you definitely want to ...
Kevin E's user avatar
  • 221
3 votes
Accepted

How to make markdown files in Git repositories indexable by search engines?

It is already crawlable and indexable. It is likely the case that Google is not seeing enough signals that it is important for certain queries yet. I would focus on getting the word out about your (...
Mike Ciffone's user avatar
  • 6,400
3 votes

How to embed GitHub "Discussions" thread within your website

Some options that use the GitHub API: https://github.com/giscus/giscus "A comments system powered by GitHub Discussions. Let visitors leave comments and reactions on your website via GitHub! ...
Ciro Santilli OurBigBook.com's user avatar
2 votes

How to connect my custom domain to github.io

I see the question is rather old, but anyway, The name of your repository should be "username.github.io", not "repositoryname" Github documentation you want to follow step by ...
Lukas's user avatar
  • 99
2 votes

What nameservers should I use for GitHub Pages when using a custom domain?

The "default" nameservers are typically the nameservers owned by your domain registrar, and your registrar should have a button to fill them in automatically. If edits to your A and CNAME records are ...
Maximillian Laumeister's user avatar
2 votes

Is it OK to give status 404 to unauthorized users?

Are you talking about when the user has not yet logged in? If the user has not yet logged in, then: From Celada in response to a closely related question Should I use a 404 or a 403 error for secure ...
Peter Jirak Eldritch's user avatar
2 votes

Github Pages subdomain on own website

In this sort of an instance it is generally to do with the DNS records not being fully propagated yet which is generally to do with how long your DNS host takes to propagate changes and has nothing to ...
Chris Rutherfurd's user avatar
2 votes
Accepted

How to get rid of this godaddy unparked screen?

Your domain appears to be working OK for me at the moment, so this might have been a caching issue, however.... Manage my DNS records and add two records provided by GitHub (192.30.252.153 192....
MrWhite's user avatar
  • 42.9k
2 votes
Accepted

How to configure GoDaddy domain to point to a specific github pages repository?

It looks like you want the canonical site to have no www. Github publishes step by step instructions for that case. If you do want the www, those instructions are here. It basically boils down to ...
Stephen Ostermiller's user avatar
2 votes
Accepted

GitHub hosted page shows github.io URL in search results

If the old sub domain now redirects to a new domain then you have already told Google the canonical version by doing so. Google often takes several days and even weeks to drop a previous ranked site....
Simon Hayter's user avatar
2 votes

How to host two Github Repositories on a single domain?

There is a pretty good article on this @ Github. Basically you can set new origin in the sub directory "blog". And you have some other options like submodules and subtrees. See the answer @ ...
Tony Stark's user avatar
2 votes
Accepted

How may I show an incomplete web application on Linkedin or on my resume?

To have it hidden from search engines - add a robots.txt with the following content: User-agent: * Disallow: / Place the robots.txt in the root directory of your website/application. To make it ...
Georg Keferböck's user avatar
2 votes
Accepted

Google pointing to old GitHub repository

So it seems it's just a matter of time. The spider visited and updated the information after 4 days.
CarlosAS's user avatar
  • 151
2 votes
Accepted

How would Google treat a GitHub-Pages site, that is based on the same content as the GitHub repository itself?

The duplicate content penalty is a myth. See: The myth of the duplicate content penalty - Search Engine Land Google only "devalues" duplicate content in the sense that it will generally show ...
Maximillian Laumeister's user avatar
2 votes
Accepted

TXT DNS record for static GitHub site

You can't use a CNAME at your domain apex (the @ record for no subdomain) regardless of whether or not you also want TXT records. It breaks all other needed records like NS, SOA, and MX records. ...
Stephen Ostermiller's user avatar
2 votes

How to make markdown files in Git repositories indexable by search engines?

Search bots will crawl and index everything they can read and consider of value. Although it is an md file, it is embedded in an HTML page so that it can be crawled by search engines. You can use the ...
Emirodgar's user avatar
  • 3,817
2 votes
Accepted

Does using GitHub Pages affect your SEO?

No. From an SEO standpoint, GitHub Pages is not special compared to any other web host. If you choose the default which is to host your website on a github.io subdomain, Google is likely to consider ...
Maximillian Laumeister's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible