Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no github page :( #3

Open
freddyb opened this issue Jun 24, 2013 · 0 comments
Open

no github page :( #3

freddyb opened this issue Jun 24, 2013 · 0 comments

Comments

@freddyb
Copy link
Collaborator

freddyb commented Jun 24, 2013

A "gh-pages" branch allows you to publish a webpage for each repository.
There's a nice hack for HTML/JS projects so the web page always syncs up with your master branch:

  1. Create the gh-pages branch: git branch gh-pages
  2. Go back to master: git checkout master
  3. Add the following 2 lines to the [remote "origin"] section of .git/config, so it always mirrors into the gh-pages branch:

push = +refs/heads/master:refs/heads/gh-pages
push = +refs/heads/master:refs/heads/master

  1. Next time you push something to master, gh-pages will sync. The URL is pauljt.github.io/scanjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant