Last active
December 10, 2015 13:29
-
-
Save sauravtom/4441422 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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