Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7179149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:04:55+00:00 2026-05-28T17:04:55+00:00

I created gh-pages branch for a repo on github. In that branch, I want

  • 0

I created gh-pages branch for a repo on github. In that branch, I want to have an index.html file and a master folder being a “symbolic link” (?) to the master branch. I want to be able to link to files in master from index.html.

I did what help page told me to:

$ cd Repos/ampere
$ git fetch origin
remote: Counting objects: 92, done.
remote: Compressing objects: 100% (63/63), done.
remote: Total 68 (delta 41), reused 0 (delta 0)
Unpacking objects: 100% (68/68), done.
From git@github.com:tekkub/ampere
 * [new branch]      gh-pages     -> origin/gh-pages
$ git checkout -b gh-pages origin/gh-pages
Branch gh-pages set up to track remote branch refs/remotes/origin/gh-pages.
Switched to a new branch "gh-pages"

I’m now in gh-pages with single index.html file. What am I supposed to do now?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:04:56+00:00Added an answer on May 28, 2026 at 5:04 pm

    You have an index.html page; so it’s just like writing a web site. If you want to have links in your page you do it the same way as you add any kind of link to a web page.

    Since you’re in a different branch, and since that branch is independent (i.e. it doesn’t come off the same root as the main project) it doesn’t know about the other branch so you can’t just link to it unless you add those files at the repository level.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a gh-pages branch of my repo, looking to create a github page
I have created web pages where am using pixel to position various html elements.
I have a repo on GitHub. Recently I have discovered GitHub's pages and I
I have created two Pages Page1.xaml and Page2.xaml in windows8 metro apps. I have
I have created a wizard using the GUI and so my pages are all
I have created login page forced login in several pages. Now i need to
I've created a winform in c#, I have 3 controls on the pages and
I've created a website with ASP.NET MVC. I have a number of static pages
I created a branch new web project: File -> New -> Project -> ASP.NET
I have a project on GitHub that has a directory containing some automatically generated

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.