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

遇到了奇怪的问题

刷新一下,或者

git remote -v // 查看
git remote rm origin
git remote add origin git@github.com:Flandre-Zhu/sync-files.git
上一篇:Docker + Flask + gunicorn + nginx + supervisord 部署服务


下一篇:Mac OpenSSl is not available的解决方法