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

Include forking how-tos? #46

Open
jstaf opened this issue Aug 16, 2016 · 1 comment
Open

Include forking how-tos? #46

jstaf opened this issue Aug 16, 2016 · 1 comment

Comments

@jstaf
Copy link

jstaf commented Aug 16, 2016

Wasn't sure if this would be helpful, but it is indeed possible to create/import lessons via forking on GitHub and still have the website get served. If people were interested in adding instructions for this, these are the steps:

# fork git repository online
git clone <repolink.git>
git checkout gh-pages
git push origin --delete gh-pages
git push origin gh-pages  # triggers website rebuild

Should git push origin --delete gh-pages fail, change your repository's default branch to something besides gh-pages (under settings) and try again. If gh-pages is the only branch:

  • create a dummy branch: git branch dummy
  • push the dummy branch to GitHub: git push origin dummy
  • switch the GitHub default branch to dummy
  • delete gh-pages git push origin --delete gh-pages
@gvwilson gvwilson self-assigned this Aug 16, 2016
@gvwilson gvwilson removed their assignment Jan 1, 2017
@rgaiacs
Copy link
Contributor

rgaiacs commented Feb 4, 2017

@jstaf Thanks for the issue. Can you send a pull request for us?

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

3 participants