关于github提交代码报错

107 阅读1分钟

首次提交本地代码到github报错

error: src refspec main does not match any 

error: failed to push some refs to 'github.com:LiangHaley/vue-VueRouter.git' 

git reset --mixed origin/main
git add .
git commit -m "This is a new commit for what I originally planned to be amended"
git push origin main

push 代码报错

$ git push fatal: unable to access 'github.com/LiangHaley/…': Failed to connect to github.com port 443 after 21041 ms: Timed out

git config --global http.proxy