zoukankan      html  css  js  c++  java
  • git push 时 rejected

    git push遇到的问题:

    wuzhiyi@IBM367-PB3Z5TM MINGW64 ~/workspace/HelloWorld/src/selenium (master)
    $ git push osc master
    To git@git.oschina.net:wuzhiyi51/selenium_learn.git
    ! [rejected] master -> master (non-fast-forward)
    error: failed to push some refs to 'git@git.oschina.net:wuzhiyi51/selenium_learn.git'
    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 push -u osc master -f
    Total 0 (delta 0), reused 0 (delta 0)
    To git@git.oschina.net:wuzhiyi51/selenium_learn.git
    + 4b61567...a20bcfd master -> master (forced update)
    Branch master set up to track remote branch master from osc.

    $ git push osc master
    Everything up-to-date

  • 相关阅读:
    第47课 父子间的冲突
    第46课 继承中的构造与析构
    第45课 不同的继承方式
    3.天线-网络规划-网络优化
    2.多址技术
    断剑重铸013
    断剑重铸012
    断剑重铸011
    1.LTE系统概述
    断剑重铸010
  • 原文地址:https://www.cnblogs.com/wuzhiyi/p/4997120.html
Copyright © 2011-2022 走看看