Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 925 Bytes

README.md

File metadata and controls

48 lines (30 loc) · 925 Bytes

Documentation workflow


Initial setup

  • Clone the repository into tforge-gh-pages subfolder (the repository does not contain gh-pages branch yet):
 ~/projects/github/tforge-gh-pages $ git clone https://github.com/sergworks/tforge.git . 
  • Create gh-pages branch:
 ~/projects/github/tforge-gh-pages $ git checkout --orphan gh-pages 

Deploy to GitHub Pages

  • Delete all files from tforge-gh-pages work directory:
 ~/projects/github/tforge-gh-pages $ git rm -rf . 
  • Copy the site content to tforge-gh-pages work directory

  • Stage new files:

 ~/projects/github/tforge-gh-pages $ git add . 
  • Commit new files:
 ~/projects/github/tforge-gh-pages $ git commit -m "commit" 
  • Push to GitHub Pages:
 ~/projects/github/tforge-gh-pages $ git push -u origin gh-pages