如何使用別人的github.io 博客模板

在搭建自己的github.io 博客的時候,如果我們想使用別人的模板而不是系統給定的主題。則需要開啓寫輪眼拷貝別人的博客。

1、註冊完成後搜索 qiubaiying.github.io 進入我的倉庫

2、點擊右上角的 Fork 將我的倉庫拉倒你的賬號下

3、創建repo
當然,一切的前提是你得首先有個github的賬戶,這裏還請自行解決。登陸你的賬戶後,你可以創建一個新的repo。請務必注意該repo的名字,必須保持格式<username>.github.io,其中<username>替換成你的github賬戶名,這裏假定創建的repo爲leimu233.github.io

4、Public forks can’t be made private. Please duplicate the repository.因此進行下面操作

git clone --bare https://github.com/exampleuser/public-repo.git
cd public-repo.git
git push --mirror https://github.com/yourname/private-repo.git
cd ..
rm -rf public-repo.git

5、此時打開你的github.io 顯示的便是 qiubaiying.github.io的內容,即博客的模板已經拷貝成功。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章