Skip to content

Instantly share code, notes, and snippets.

@sauravtom
Last active December 10, 2015 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sauravtom/4441422 to your computer and use it in GitHub Desktop.
Save sauravtom/4441422 to your computer and use it in GitHub Desktop.
mkdir my_new_project
cd my_new_project
git init
git checkout --orphan gh-pages
touch index.html
touch README.md
gedit index.html //open index.html and edit the homepage
git add .
git commit -a -m 'First Version'
git remote add origin https://github.com/<username>/<projectname>.git
// If your project already has a page, and you dont want that, instead want a new one
git push origin --delete gh-pages
// In the end push your git to github
git push origin gh-pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment