执行下面的命令,git push 时候出错:

git push  origin master

出现如下错误:

error: src refspec master does not match any.
error: failed to push some refs to 'git@github.com:********'

原因:

本地仓库为空

解决办法:

git add somefile
git commit -m "comment"

最新文章

  1. 从零开始编写自己的C#框架(24)——测试
  2. 《UML大战需求分析》阅读随笔(二)
  3. 完整的Ajax及三级联动小练习
  4. Linux“Bash”漏洞大爆发
  5. [转贴]从零开始学C++之STL(二):实现一个简单容器模板类Vec(模仿VC6.0 中 vector 的实现、vector 的容量capacity 增长问题)
  6. Java多线程练习二
  7. C# 操作系统回收站
  8. 用PHP编写Hadoop的MapReduce程序
  9. arcgis属性选取like用法
  10. Git版本控制 — 日常使用(二)
  11. ios之库Protobuf的使用
  12. Python前世今生以及种类、安装环境
  13. python 计时程序运行时间
  14. Spring Boot工程结构推荐程结构(最佳实践)
  15. 【Linux】压缩多个文件
  16. Python项目生成requirements.txt的多种方式
  17. Spring Cloud Summary
  18. 关于ASP .NET Core在跨平台的linux ubuntun,SUSE ,Mac OS的发布的相关平台操作
  19. MATLAB 02
  20. liniux备忘录-磁盘配额与进阶文件系统管理

热门文章

  1. 微信小程序获取当前页面的路径的方式
  2. MySQL20个经典面试题
  3. LeetCode OJ:Longest Increasing Subsequence(最长递增序列)
  4. [转载]Spring源码下载地址
  5. Spring报错:java.io.FileNotFoundException: class path resource [applicationContext.xml] cannot be opened because it does not exist
  6. 在头文件中声明class 类 与 include类所在的头文件区别---理解
  7. currentTarget,this,target区别
  8. React-Native基础_5.列表视图ListView
  9. 怎么样编译DeepMind?
  10. [Github] 本地git push免用户名和密码的配置