打算备份设置的时候,next由于本身是一个git项目,上传上去作为了模块,然后变成了灰色。。。
嗯,原来问题是需要管理git仓库的子仓库
git add
的时候显示是酱婶的
1 2 3 4 5 6 7 8 9 10
| git init git remote add origin git@github.com:BlingArida/myBlog-git.git git add myBlog/ git commit -m "first commit"
#作为一个子模块上传,会变灰,删掉它,然后作为目录上传 git rm --cached myBlog/themes/next git add myBlog/themes/next/ git commit -m "add commit" git push origin master
|
Footnotes:
- 在Github上备份Hexo博客
- 管理 Git 仓库内的子仓库