github 搭建博客

好久沒用GitHub了,今天心血來潮,想用GitHub pages搭建個blog :)
先找個教程https://zhuanlan.zhihu.com/p/22098309

git clone https://github.com/WicleQian/WicleQian.github.io
cd WicleQian.github.io
echo "Hello World" > index.html


$ git add --all(提交所有變化,縮寫:git add -A,與之對應的是git add --update,提交被修改(modified)和被刪除(deleted)文件,不包括新建的文件(new),git add -u)
$ git commit -m "Initial commit"
$ git push -u origin master // 加了-u以後說invalid username or password,所以直接輸的git push origin master ,然後輸入用戶名和密碼

打開git shell 的時候報錯:警告: git command could not be found. Please create an alias or add it to …
因爲更新了git shell
只要打開github客戶端,再打開git shell就行了。
訪問https://wicleqian.github.io/
就可以看到啦

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