tamako tamako
首页
  • Mysql
  • Redis
  • JVM
  • 个人开源项目 (opens new window)
  • 开源官网 (opens new window)
  • B站主页 (opens new window)
  • 摄影
  • 网站
  • 资源
  • 分类
  • 标签
  • 归档
GitHub (opens new window)

tamako | 玉子

胜人者有力,自胜者强
首页
  • Mysql
  • Redis
  • JVM
  • 个人开源项目 (opens new window)
  • 开源官网 (opens new window)
  • B站主页 (opens new window)
  • 摄影
  • 网站
  • 资源
  • 分类
  • 标签
  • 归档
GitHub (opens new window)
  • git使用经验1

    • 报错信息
      • 解决
      pruedream
      2023-12-12
      git
      目录

      git使用经验1

      # git使用经验1

      # 报错信息

      Updates were rejected because the remote contains work that you do  not have locally. This is usually caused by another repository pushing to the same ref. You may want to first integrate the remote changes  (e.g., 'git pull ...') before pushing again.
      hint: See the 'Note about fast-forwards' in 'git push --help' for details.
      
      1
      2

      # 解决

      上述问题在开发过程中老是出现,时灵时不灵的,还是要搞清楚了,一次搞懂,终生收益。

      错误原因:在github上修改了文件,没有更新到本地就上传,永远记住,处理冲突只能在本地处理,所以push之前一定要先pull在本地处理完冲突,再push。

      解决方法:本地和远程的文件应该合并后才能上传本地的新文件 具体方法:

      1、先pull拉下来,会自动合并的,

      2、再上传

      #git
      上次更新: 2024/08/09, 16:07:34
      最近更新
      01
      骄惰怯
      08-10
      02
      谦虚谦虚谦虚
      08-09
      03
      长期主义
      07-17
      更多文章>
      Theme by Vdoing | Copyright © 2019-2024 tamako | MIT License
      • 跟随系统
      • 浅色模式
      • 深色模式
      • 阅读模式