git pull --rebase origin master
git push -u origin master

 当出现下面错误时 ,是因为和仓库两端版本不一致时,常见于刚创建仓库时,中只有readme文件的情况.执行下面的运行完毕之后.再push到仓库即可

 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
git pull origin master --allow-unrelated-histories

最新文章

  1. 高效而稳定的企业级.NET Office 组件Spire(.NET组件介绍之二)
  2. CSS的基本操作
  3. 开启Ubuntu php错误提示 ZT
  4. [Java][RCP] 引入第三方jar包时出错: XXXcannot be found XXX
  5. Centos 6.5中安装后不能打开emacs的问题
  6. Android 打造自己的个性化应用(二):应用程序内置资源实现换肤功能
  7. 关于ddl(新增字段)对数据库锁表|读写操作的影响_资料
  8. Java代码混淆工具ProGuard
  9. item 10: 比起unscoped enum更偏爱scoped enum
  10. Ping命令的另一种使用方法
  11. PHP函数笔记
  12. HBase基础之Hbase shell常用操作
  13. python简单基础代码
  14. TASK 的使用
  15. ngRouter和ui-router区别
  16. (十一)T检验-第二部分
  17. PHP通过curl模拟POST上传文件,5.5之前和之后的区别
  18. 变换CALayer锚点实现模拟时钟的动画
  19. iPhone应用程序的启动过程
  20. html中给元素添加背景图片或者gif动图

热门文章

  1. js--延时消失的菜单--(笔记)
  2. appium获取package和activity
  3. 【Web】Nginx配置开机启动
  4. Python之开发自动化管理工具paramiko
  5. Rest架构风格
  6. css中元素的位置
  7. list集合去除重复对象的实现
  8. 树状数组(hdu-4325,hdu-1166,pat-1057)
  9. linux复制文件并修改文件名
  10. 第22章:MongoDB-聚合操作--聚合管道--$out