Pages

Saturday 17 November 2012

Git Pages

Few days ago, I created a personal page in GitHub. I'm sure a lot of developer know GitHub Pages, if not, please do visit GitHub Pages for more information. Here is my personal Git Page

Few easy steps to create a personal GitHub Pages:
Step 1:
Create a repo uses your GitHub account name in GitHub. Like poiyee/poiyee.github.com

Command:
Create a directory in your local:
mkdir <dir_name> ==> mkdir poiyee 
Initialize Git repo: git init  

Step 2: 
Create a README and index.html file in your local repo and push to remote repo. 

Command: 
Create README and index file: 
touch README.md touch index.html 

Add these 2 files to stage/index area: 
git add * 

Commit changes to head: 
git commit -m "commit message" 

Push to remote Git repo: 
git remote add origin ==> git remote add origin https://github.com/poiyee/poiyee.github.com.git 
*Note: Escape this step if you already connect to your remote repo. 

Send changes to remote repo: 
git push origin master

Done. You will receive an mail from GitHub saying that it may takes few minutes to get your page appear.


Happy coding!=)