---
title: "Discussion on \"How to create a GitHub gh-pages branch in an existing repository\" | Hashnode"
description: "Discussion on \"How to create a GitHub gh-pages branch in an existing repository\". This blog post is a really short one.\n\nRecently I wanted GitHub to serve my Helm chart via GitHub pages. So far so good, but I had already committed to the main branch. And I wanted a clean branch for my Helm repository.\n\nBut with a little Git magic ..."
url: "https://hashnode.com/posts/how-to-create-a-github-gh-pages-branch-in-an-existing-repository/61a26608a707ae38156d6515"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to create a GitHub gh-pages branch in an existing repository](https://blog.ediri.io/how-to-create-a-github-gh-pages-branch-in-an-existing-repository?utm_source=hashnode&utm_medium=feed)

This blog post is a really short one. Recently I wanted GitHub to serve my Helm chart via GitHub pages. So far so good, but I had already committed to the main branch. And I wanted a clean branch for my Helm repository. But with a little Git magic ...

Nov 27, 2021 · 1 min read · blog.ediri.io  
Read the article

-   [#github](https://hashnode.com/tag/github)
-   [#static](https://hashnode.com/tag/static)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#hosting](https://hashnode.com/tag/hosting)
-   [#kubernetes](https://hashnode.com/tag/kubernetes)

## Written by

[Engin Diri](https://hashnode.com/@ediri)

@ediri · Germany

  
[View profile](https://hashnode.com/@ediri)

Customer Experience Architect @ Pulumi

Cloud Native Pilgrim | Kubernetes Enthusiast | Serverless Believer | Customer Experience Architect @ Pulumi | (he/him) | CK{A,AD} |

## Responses 1

Markdown supported · ⌘↵ to post

[Sumiya Sayeed](https://hashnode.com/@SumiyaSayeed)

[Nov 22, 2022](https://hashnode.com/posts/how-to-create-a-github-gh-pages-branch-in-an-existing-repository/61a26608a707ae38156d6515/comment/637cd6d0698c50b963508335)

I tried your way. But it seems my link shows only the ReadMe file. Any idea why is that?

[Engin Diri](https://hashnode.com/@ediri)

[Nov 23, 2022](https://hashnode.com/posts/how-to-create-a-github-gh-pages-branch-in-an-existing-repository/61a26608a707ae38156d6515/comment/637cd6d0698c50b963508335#reply-637e241f35b255d5228ebb8d)

Can you past your repo url so I can have a look if you want?
