. : June 15, 2015 : .
GitHub Project Pages and gh-pages -> gh-pages (non-fast-forward) error
TweetI just created my first GitHub Project Page for Text-Gradiator: a JavaScript tool that lets you put gradients on regular HTML text elements. In doing so, I made the mistake of creating a page with the Automatic Page Generator before I tried doing it manually.
Rookie mistake!
When you use the automatic page generator, a gh-pages branch gets automatically generated. Then when you try to create one manually, you will receive this error:
! [rejected] gh-pages -> gh-pages (non-fast-forward)
After a little poking around on the internet and reading some things that turned out to be unhelpful for my situation, I stumbled across this. It’s an oldie, but a goodie!
In the before mentioned post, Dirk Bergmann suggests that you might need to delete your gh-pages branch and start fresh. I tried that, and everything went back to being cool again. Thanks, Dirk!
Directions for deleting a branch on GitHub can be found here.
References:
- Text-Gradiator Project Page
- Text-Gradiator on GitHub
- Instantly Beautiful Project Pages
- Creating Project Pages manually
- Dealing with non-fast-forward errors
- gh-pages -> gh-pages (non-fast forward) when creating github project page
- Create and delete branches
Leave a Reply
You must be logged in to post a comment.