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 7184757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:16:00+00:00 2026-05-28T18:16:00+00:00

GitHub has a Project Pages feature that pulls from the gh-pages branch of a

  • 0

GitHub has a Project Pages feature that pulls from the gh-pages branch of a repository. It’s explained here: http://pages.github.com/

I want the gh-pages branch to be an exact mirror of the Master branch. One way I found (here on Stack Overflow) is to run:

git config --add remote.origin.push +refs/heads/master:refs/heads/gh-pages

This causes each instance of git push to push the Master branch of the repository into the gh-pages branch.

The trouble that I have with this solution is that I’m using the GitHub Mac App, which doesn’t use a strict git push. According to http://mac.github.com/help.html it does a git pull --rebase. Additionally, even when I select Push from the Repository menu, my git config line isn’t adhered to.

So, I’m wondering if there is a way that fits well with the GitHub Mac App to get the gh-pages branch be an exact mirror of the Master branch.

  • 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-28T18:16:01+00:00Added an answer on May 28, 2026 at 6:16 pm

    I ran through a bunch of my own tests. It doesn’t seem like you need to go through the exact process they’ve laid out at http://pages.github.com/ in order to create the gh-pages branch. You can simply create a new branch named gh-pages from within the GitHub Mac App.

    They probably don’t instruct people to do this because what I’m accomplishing here isn’t a typical scenario.

    You can take these steps to create the ‘gh-pages’ branch from within the GitHub Mac App:

    1. Go to the Branches view of your repository
    2. Click the + button on your Master branch to create a new branch – name this ‘gh-pages’
    3. Click the Publish button to push it to GitHub
    4. Use the bottom left menu to checkout the Master branch, if you’re not working in the Master branch

    Take these steps to sync your changes from the Master branch into the gh-pages branch:

    1. Make changes in your Master branch
    2. In the Changes view, enter the commit summary & click the Commit & Sync button to push to the Master branch
    3. Switch to Branches view
    4. Click the Merge View button to display the Merge view
    5. Drag the Master branch to the left slot & the gh-pages branch to the right slot
    6. Click the Merge Branches button
    7. Use the bottom left menu to checkout the gh-pages branch
    8. Click the Branch in Sync button to force a synchronization
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a project checked locally from GitHub, and that remote repository has since
Has anyone seen an open-source library that produces charts similar to Github.com's commit timeline
Now that http://github.com/why/hpricot/wikis/home no longer exists.
I have a private repository in github that has 5 collaborators.Now when the collaborators
Consider the following scenario: Someone has a project on Github that might be updated
I have a project on GitHub that has a directory containing some automatically generated
A project on GitHub that I have a fork of has a new pull
I have opened a project from Github, which has blue folders in its file
I've forked a project on GitHub that has some flash messages. For example, with
Has anybody successfully configured Teamcity to monitor, extract, and build from GitHub? I can't

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.