GitHub error: src refspec master does not match any

查看分支名字

git branch

https://blog.csdn.net/nongminkouhao/article/details/93860896

https://www.cnblogs.com/woooodlin/p/13444611.html

感觉一般不是长时间不用(需要修改.ssh)的问题

=====

解决Github每次提交都要输入用户名和密码

https://blog.csdn.net/weixin_41024483/article/details/90239518

https://www.cnblogs.com/sky6862/p/7992736.html

原因:在clone 项目的时候,使用了 https方式,而不是ssh方式。

默认clone 方式是:https

=====

分支 main

main分支改为master(提交发现没有新的内容)

缘由 https://blog.csdn.net/weixin_39608479/article/details/110411982

创建并切换到main
git checkout -b main

=====

cd iPad-wallpaper-DIY-
git add -A
git commit -m "new"
git push origin main


创建并切换到main
git checkout -b main


https://blog.csdn.net/aitangyong/article/details/51483925
git branch  命令可以显示所有本地分支

git checkout 命令加上 –b参数表示创建并切换,相当于如下2条命令:
git branch xxx
git checkout xxx

git merge dev 合并指定分支到当前分支上

git branch -d xxx

在本地删除一个分支: git branch -D <本地分支>


在github远程端删除一个分支: git push origin :<远程端分支>


https://www.liaoxuefeng.com/wiki/896043488029600/

原文地址:https://www.cnblogs.com/cmyg/p/14199017.html