$ cd /path/to/repo
$ git checkout -b gh-pages
$ git branch --list
* gh-pages
master
$ cat > index.html
Test Page for GitHub Pages
ctrl-d
$ git add index.html
$ git commit -m "changed header" index.html
$ git push origin gh-pages
In this example, my git username is codetricity. My git repository is swarm_gen2.
The URL is http://codetricity.github.io/swarm_gen2
Showing posts with label github. Show all posts
Showing posts with label github. Show all posts
Thursday, February 27, 2014
GitHub Pages for Existing Repository from Command Line
Tuesday, December 17, 2013
GitHub Pages, Bootstrap, and markdown
Since I started to move the example code for my son's tutorials to GitHub, I decided to document the tutorials and functionality with GitHub tools.
I initially started with the README.md file in my GitHub repositories. This required me to learn Markdown Syntax. The syntax is straightforward and take about 30 minutes to learn. GitHub has version for Markdown that they're call GitHub Flavored Markdown (GFM).
This was pretty fun since I could use lists, headings, and embedded images in the README.md file.
I then noticed that there is a wiki link to the right of each repository. I created a wiki for the lessons and even put the YouTube videos into the wiki.
Today, I found out that GitHub has a feature called Pages to create a full project site. I created a video overview of Pages and wrote a blog post here.
I created a full website for my project repository in 6 minutes.
Since I was on a roll and had some spare time, I read more about GitHub Pages and realized that the web pages were stored in my repository on the GitHub server and could easily be updated with git.
To make a more dynamic web site, I looked at bootstrap. I created a test site for json_loader using the Carousel template for Bootstrap.
I ended the day by watching this awesome video by David Cochran of Twitter.
I initially started with the README.md file in my GitHub repositories. This required me to learn Markdown Syntax. The syntax is straightforward and take about 30 minutes to learn. GitHub has version for Markdown that they're call GitHub Flavored Markdown (GFM).
This was pretty fun since I could use lists, headings, and embedded images in the README.md file.
I then noticed that there is a wiki link to the right of each repository. I created a wiki for the lessons and even put the YouTube videos into the wiki.
Today, I found out that GitHub has a feature called Pages to create a full project site. I created a video overview of Pages and wrote a blog post here.
I created a full website for my project repository in 6 minutes.
Since I was on a roll and had some spare time, I read more about GitHub Pages and realized that the web pages were stored in my repository on the GitHub server and could easily be updated with git.
To make a more dynamic web site, I looked at bootstrap. I created a test site for json_loader using the Carousel template for Bootstrap.
I ended the day by watching this awesome video by David Cochran of Twitter.
Subscribe to:
Posts (Atom)