1.在 Github 上建一个名为 xxx.github.io 的库;
2.把看中了的 Jekyll 模板 clone 到本地;
3.把这个模板 push 到自己的库;gouaili@gouaili-DT MINGW64 /e
$ git clone https://github.com/gouaili/gouaili.github.io.git
Cloning into 'gouaili.github.io'...
warning: You appear to have cloned an empty repository.
$git clone https://github.com/abaojin/abaojin.github.io.git
gouaili@gouaili-DT MINGW64 /e
$ git clone https://github.com/abaojin/abaojin.github.io.git
Cloning into 'abaojin.github.io'...
remote: Counting objects: 447, done.
Receiving objects: 91% (407/447), 268.0remote: Total 447 (delta 0), reused 0 (delta 0), pack-r eused 447
Receiving objects: 100% (447/447), 277.94 KiB | 5.00 KiB/s, done.
Resolving deltas: 100% (261/261), done.
gouaili@gouaili-DT MINGW64 /e
$ ls
'$RECYCLE.BIN'/ abaojin.github.io/ itunes/ WorkWiki/
'~$ Microsoft Word 文档.docx' DH-data/ personweb/ zhaop/
360CloudUI/ dw_work_git/ SMS/ 工作文档/
360Downloads/ gouaili.github.io/ SVN_bigdata/ 行政服务/
91UserData/ 'iTools 3'/ 'System Volume Information'/
c
gouaili@gouaili-DT MINGW64 /e
$ cd abaojin.github.io
gouaili@gouaili-DT MINGW64 /e/abaojin.github.io (master)
$ ls
_config.yml _includes/ _posts/ css/ feed.xml js/ media/ README.md
_drafts/ _layouts/ _sass/ favicon.ico index.html LICENSE page/ README-zh-en.md
gouaili@gouaili-DT MINGW64 /e/abaojin.github.io (master)
$ vim _config.yml
gouaili@gouaili-DT MINGW64 /e/abaojin.github.io (master)
$ git add .
gouaili@gouaili-DT MINGW64 /e/abaojin.github.io (master)
$ git commit -m 'modified _config.yml'
[master c568817] modified _config.yml
1 file changed, 4 insertions(+), 4 deletions(-)
gouaili@gouaili-DT MINGW64 /e/abaojin.github.io (master)
$ git remote -v
origin https://github.com/abaojin/abaojin.github.io.git (fetch)
origin https://github.com/abaojin/abaojin.github.io.git (push)
gouaili@gouaili-DT MINGW64 /e/abaojin.github.io (master)
$ git remote set-url origin https://github.com/gouaili/gouaili.github.io.git
gouaili@gouaili-DT MINGW64 /e/abaojin.github.io (master)
$ git remote -v
origin https://github.com/gouaili/gouaili.github.io.git (fetch)
origin https://github.com/gouaili/gouaili.github.io.git (push)
gouaili@gouaili-DT MINGW64 /e/abaojin.github.io (master)
$ git push -u origin master
Counting objects: 450, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (184/184), done.
Writing objects: 100% (450/450), 278.47 KiB | 0 bytes/s, done.
Total 450 (delta 263), reused 446 (delta 261)
remote: Resolving deltas: 100% (263/263), done.
To https://github.com/gouaili/gouaili.github.io.git
* [new branch] master -> master
Branch master set up to track remote branch master from origin.