【发布时间】:2022-01-28 07:29:03
【问题描述】:
我在将更改从 Visual Studio 代码推送到 Github 时遇到了困难。对于上下文,我对 git 和 github 相对较新——在查看了过去的 SO 讨论和其他在线论坛之后,并尝试了以下操作:使用 git init/git remote origin 将本地计算机与 github 连接,以及生成 SSH 密钥.
但是,这些东西似乎都不起作用。当我输入时
git push -u origin master
终端回复error: src refspec master does not match any。
另外,我不确定这是否相关,但是当我输入时
~/.ssh/config
终端回复the term '~/.ssh/config' is not recognized as the name of a cmdlet, function, script file, or operable program.
任何有关故障排除的想法都将不胜感激。谢谢大家!
【问题讨论】: