本文遇到的坑
-
- 1. git remote add origin https://github.com/****/xx.git时error: remote origin already already exists.
- 2. git push -u origin master时出现warning方块
- 3. push时 master->master(non-fast-forward),error : failed to push some refs to *githubUrl
- 4. git bash出现(master| REBASE 1/2)
- 5. GitHub打不开
- 6. OpenSSL SSL_read: Connection was reset, errno 10054
- 7. fatal:unable to access 'https://github.com/***/**.git':Failed to connect to github.com port 443:Time out
1. git remote add origin https://github.com/****/xx.git时error: remote origin already already exists.
git remote rm origin
再次add就可以了
2. git push -u origin master时出现warning方块
TLS cetificate verification has been disabled!
这种SSL的问题,最方便的是直接禁用…git config --global http.sslVerify false
不过风险这块。学学计网再回来想想…
红色error解决: git push -f
不管用就git pull --rebase origin master
再push