新 Project

在 hexo 資料夾下初始化 git,並做第一次 commit

1
2
git init
git commit -a

將 branch 改名並推至遠端

1
2
3
4
git branch -m hexo-article # 更名為 hexo-article
git remote add origin https://github.com/[your-account]/[your-account].github.io
git fetch origin # 檢查遠端是否有新東西
git push origin hexo-article -u

 

既有 project

原本怎麼做就怎麼做…

1
2
git commit -am "some comment"
git push