栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

git遇到的问题

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

git遇到的问题

修改项目的默认分支:


默认是main 修改为master


git push 成功了,但是没代码,默认是main分支,hexo博客默认推送master分支。。


设置以后的默认分支:


hexo d 时出现 SpawnFailed 错误的解决方案:
引用:https://zhuanlan.zhihu.com/p/400115238
我是用的解决方法:

# 删除 .deploy_git文件夹
git config --global core.autocrlf false
# 然后,依次执行
hexo clean 
hexo g
hexo d

其他解决方法:

# 打开_config.yml配置文件,修# 打开_config.yml配置文件,修改以下内容

deploy:
type: 'git'
repo: https://github.com/yourname/yourname.github.io.git
branch: master

# 其中的repo修改为
repo: git@github.com:yourname/yourname.github.io.git改以下内容

deploy:
type: 'git'
repo: https://github.com/yourname/yourname.github.io.git
branch: master

# 其中的repo修改为
repo: git@github.com:yourname/yourname.github.io.git

创建token


hexo放在github上静态资源访问不了

引用:https://blog.csdn.net/StarryaSky/article/details/83378011

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/272380.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号