git遇到问题

git 遇到问题总结

初始化

git config --global user.name "Flandre-Zhu"
git config --global user.email "lightninguzzhu@yandex.com"
git init

git push: 找不到库

注意push前要先commit

git remote -v // 查看
git remote rm origin
git remote add origin git@github.com:Flandre-Zhu/sync-files.git
git push origin master

git pull 提示 Your local changes to the following files would be overwritten by merge

git stash
git pull origin master
git stash pop

遇到了奇怪的push/pull问题

刷新一下,或者

git remote -v // 查看
git remote rm origin
git remote add origin git@github.com:Flandre-Zhu/sync-files.git

git pull/clone 提示 gnutls_handshake() failed: Error in the pull function.

取消掉github的代理即可

git config --global --unset http.https://github.com.proxy
posted @ 2022-01-01 23:26  Flandre-Zhu  阅读(42)  评论(0编辑  收藏  举报