0%

hexo项目github备份---管理git仓库的子仓库

打算备份设置的时候,next由于本身是一个git项目,上传上去作为了模块,然后变成了灰色。。。

嗯,原来问题是需要管理git仓库的子仓库

git add 的时候显示是酱婶的

1570678689693

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:

  1. 在Github上备份Hexo博客
  2. 管理 Git 仓库内的子仓库