git常用指令

git init
git add .
git commit -m "备注"
git remote add origin git@github.com:catfish18674282560/my_blog_article.git
git push -u origin main   # github把master改成main了,码云还是main
git push origin main
git clone https://xxxxxxxxx
git pull https://xxxxx

报错:fatal: remote origin already exists.

解决:

git remote rm origin

报错:Git报错解决:fatal: unable to access ‘https://github.com/.......‘: OpenSSL SSL_read: Connection was reset

解决:

git config --global http.sslVerify "false"

其他错误解决不了直接删了 .git 文件吧,然后重新来。

posted @ 2020-09-27 14:57  小默同学  阅读(78)  评论(0编辑  收藏  举报