网页直接打开不了github——找代理
开启代理之后在终端进行配置ip+port:
git config --global http.proxy 127.0.0.1:7890
git config --global https.proxy 127.0.0.1:7890
参考图片:
补充:
常见报错如:
fatal: refusing to merge unrelated histories
先进行——>允许合并没有共同祖先的历史(如果发生合并冲突,需要手动解决)
git pull origin main --allow-unrelated-histories
再进行
git push origin new_main(分支名称)