Application Development Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
JerryWang
Product and Topic Expert
Product and Topic Expert
1,703
1. Create a new empty github repository:



The local project has the following folder structure:

lib( folder )

   |- angular.js

angular_controller.html

Follow the instructions in above picture to push the local project to github. Once done, it should look like below:



2. use command git checkout --orphan gh-pages to create a new branch named "gh-pages".



Add all files in local project to this branch and push them to github again via command:

git push origin gh-pages

Once done, you should find a new branch gh-pages in github now.



Switch to this branch:



Click the hyperlink of html, and you get the following url in browser:




The url for this Angular application hosted in github is:

http://<your user name in github>.github.com/<repository_name>/angular_controller.html


Test in browser and it works now:








Labels in this area