The process of Git commands Operation
1. git commit -m ‘fist post‘
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.
C:\Users\james> cd f:/
F:\> cd kamakawiwo
F:\kamakawiwo> dir
F:\kamakawiwo> git init
Initialized empty Git repository in F:/kamakawiwo/.git/
F:\kamakawiwo [master]> dir
F:\kamakawiwo [master]> dir
F:\kamakawiwo [master]> git checkout --orphan gh-pages
Switched to a new branch ‘gh-pages‘
F:\kamakawiwo [gh-pages]> git add .
F:\kamakawiwo [gh-pages +4 ~0 -0]> dir
Directory: F:\kamakawiwo
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 11/11/2014 7:26 PM _layouts
d---- 11/12/2014 3:02 PM _posts
-a--- 11/13/2014 10:38 AM 274 index.html
-a--- 11/13/2014 10:35 AM 20 _config.yml
F:\kamakawiwo [gh-pages +2 ~0 -0 !]> mkdir _posts
Directory: F:\kamakawiwo
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 11/13/2014 11:48 AM _posts
F:\kamakawiwo [gh-pages +2 ~0 -0 !]> dir
Directory: F:\kamakawiwo
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 11/13/2014 11:46 AM _layouts
d---- 11/13/2014 11:48 AM _posts
-a--- 11/13/2014 11:41 AM 20 _config.yml
F:\kamakawiwo [gh-pages +2 ~0 -0 !]> git add .
F:\kamakawiwo [gh-pages +4 ~0 -0]> git commit -m "first post"
[gh-pages (root-commit) 06fe5bd] first post
4 files changed, 38 insertions(+)
create mode 100644 _config.yml
create mode 100644 _layouts/default.html
create mode 100644 _posts/2014-11-11-hello-world.html
create mode 100644 index.html
F:\kamakawiwo [gh-pages]> git remote add origin https://github.com/smelike/kamak
awiwo.git
F:\kamakawiwo [gh-pages]> git push origin gh-pages
Counting objects: 8, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (8/8), 897 bytes | 0 bytes/s, done.
Total 8 (delta 0), reused 0 (delta 0)
To https://github.com/smelike/kamakawiwo.git
* [new branch] gh-pages -> gh-pages