zoukankan      html  css  js  c++  java
  • git push

    使用git push直接推送未关联分支的时候,出现如下提示:

    $ git push
    Counting objects: 46, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (7/7), done.
    Writing objects: 100% (7/7), 761 bytes | 0 bytes/s, done.
    Total 7 (delta 5), reused 0 (delta 0)
    remote: Resolving deltas: 100% (5/5)
    remote: Processing changes: refs: 1, done
    To ssh://yiyangzhang@code.ctripcorp.com:29418/UED/Flight/UED.Flight.online
       b74697a..8408b72  giftReplaceCoupons -> giftReplaceCoupons
     ! [rejected]        master -> master (fetch first)
    error: failed to push some refs to 'ssh://yiyangzhang@code.ctripcorp.com:29418/UED/Flight/UED.Flight.online'
    hint: Updates were rejected because the remote contains work that you do
    hint: not have locally. This is usually caused by another repository pushing
    hint: to the same ref. You may want to first 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 status 的时候,出现如下提示:

    $ git status
    On branch giftReplaceCoupons
    Your branch is up-to-date with 'origin/giftReplaceCoupons'.
    
    
    It took 2.27 seconds to enumerate untracked files. 'status -uno'
    may speed it up, but you have to be careful not to forget to add
    new files yourself (see 'git help status').
    nothing to commit, working directory clean
    

      

    使用git push指定远程仓库的时候,提示如下:

    $ git push origin master
    Counting objects: 53, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (7/7), done.
    Writing objects: 100% (8/8), 764 bytes | 0 bytes/s, done.
    Total 8 (delta 6), reused 0 (delta 0)
    remote: Resolving deltas: 100% (6/6)
    remote: Processing changes: refs: 1, done
    To ssh://yiyangzhang@code.ctripcorp.com:29418/UED/Flight/UED.Flight.online
       2507930..477a26e  master -> master
    

      

  • 相关阅读:
    母函数做的题
    HDU2089 暴力打表
    HDU2036 改革春风吹满地
    HDU1201 水题
    高可用服务 AHAS 在消息队列 MQ 削峰填谷场景下的应用
    Nacos Committers 团队首亮相,发布 0.9.0 版本
    Dubbo Mesh 在闲鱼生产环境中的落地实践
    Watchdogs利用Redis实施大规模挖矿,常见数据库蠕虫如何破?
    阿里在使用一种更灵活的软件集成发布模式
    2019 年,容器技术生态会发生些什么?
  • 原文地址:https://www.cnblogs.com/ayseeing/p/4239720.html
Copyright © 2011-2022 走看看