Miscellanies about Hexo deployment with purification
-
1
2
3
4$ git remote rm origin
$ git remote add origin <repository>
$ git config master.remote origin
$ git config master.merge refs/heads/master -
But the SHA1 code changes after revision.
Git add submodule reference
1
git submodule add <repository<path>
check
.gitmodules
for details.Git remove submodule reference
1
2
3git submodule deinit <path_to_submodule>
git rm [-r] [--cached] <path_to_submodule>
git commit -m "Removed submodule"rm -rf .git/modules/
-
Update
.gitmodule
and specify the branch of submodule to track. Then reload:1
2git submodule sync
git submodule update --init --recursive --remoteOr re-add the submodule:
1
2git submodule add -b <branch<repository[<submodule-path>]
git submodule update --remote Hexo math not working
-
1
2git checkout --ours PATH/FILE # accepting base version only
git checkout --theirs PATH/FILE # accepting incoming version only