zoukankan      html  css  js  c++  java
  • git 版本落后推送错误

     http://114.215.90.144/student_association/student.git
     ! [rejected]        master -> master (non-fast-forward)
    error: failed to push some refs to 'http://114.215.90.144/student_association/student.git'
    hint: Updates were rejected because a pushed branch tip is behind its remote
    hint: counterpart. Check out this branch and integrate the remote changes
    hint: (e.g. 'git pull ...') before pushing again.
    hint: See the 'Note about fast-forwards' in 'git push --help' for details.
     
     
    方法一:把本地文件复制一份,然后在把项目从仓库中拉下来
     
    方法二:使用git强制推送命令 git push -f all

     

    方法三: 第一步 :git push origin +some_branch
                     第二步:git push -u origin master
  • 相关阅读:
    合理的嵌入式开发学习路线
    Nginx
    RARP
    强弱电共地
    ACDC
    各电脑进Bios方法
    Java中Integer.parseInt
    全排列
    Java实现LRU缓存方案?
    缓存有关的几个问题
  • 原文地址:https://www.cnblogs.com/Lance--blog/p/5203958.html
Copyright © 2011-2022 走看看