0
点赞
收藏
分享

微信扫一扫

git添加不相关记录

琛彤麻麻 2022-03-26 阅读 46
sshgit运维

参考文献:
https://blog.csdn.net/sclibingqing/article/details/81179470

上传完整项目到git报错
1.如果commit错误,直接删除.git 重新初始化
2.如果push出错
! [rejected] master -> master (non-fast-forward)

在这里插入图片描述
使用如下命令

git pull origin master --allow-unrelated-histories

然后上传

git push origin master
举报

相关推荐

0 条评论