The default is to build a good
hexo
blog, here is managed by a branch of the source file, you can also build another warehouse management
Configuration .gitignore
file (optional)
For security reasons, do not upload the configuration file
.DS_Store
Thumbs.db
db.json
*.log
node_modules/
public/
.deploy*/
_config.yml
Re-versioning
# 注意替换为自己的仓库
git init # 初始化本地仓库
git add -A # 添加本地所有文件到仓库
git commit -m "blog源文件" # 添加 commit
git branch hexo # 创建本地仓库分支 hexo
# origin是本地分支,remote add操作会将本地仓库映射到云端
git remote add origin [email protected]:jesongit/jesongit.github.io.git
git push origin hexo # 将本地仓库的源文件推送到远程仓库 hexo 分支
Other terminals
The default configured
SSH KEY
, installedNode.js
and other environmental
git clone -b hexo [email protected]:jesongit/jesongit.github.io.git
cd hexo
npm install
Upload source files
git add *
git commit -m "update"
git push
Synchronization source file
git pull origin hexo