zoukankan      html  css  js  c++  java
  • xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

    git push bug

    fast-forwards

    $ git push
    
    $ git push --help
    
    
    # git pull
    $  gp
    To http://git.xgqfrms.xyz:8888/fe/web.git
     ! [rejected]            feature-system-guide-> feature-system-guide (fetch first)
    error: failed to push some refs to 'http://git.xgqfrms.xyz:8888/fe/web.git'
    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 push
    Enumerating objects: 4, done.
    Counting objects: 100% (4/4), done.
    Delta compression using up to 8 threads
    Compressing objects: 100% (3/3), done.
    Writing objects: 100% (3/3), 1.90 KiB | 1.90 MiB/s, done.
    Total 3 (delta 1), reused 0 (delta 0)
    remote: error executing git hook
    To http://git.xgqfrms.xyz:8888/eric/test.git
     ! [remote rejected] abc -> abc (pre-receive hook declined)
    error: failed to push some refs to 'http://git.xgqfrms.xyz:8888/eric/test.git'
    
    
    git pull origin <your-branch>
    git push origin <your-branch>
    
    

    solutions

    git fetch ✅

    $ git fetch
    
    
    

    rm -rf .git/gc.log

    $ git pull origin abc
    
    From http://git.xgqfrms.xyz:8888/eric/test
     * branch            abc        -> FETCH_HEAD
    Auto packing the repository in background for optimum performance.
    See "git help gc" for manual housekeeping.
    warning: The last gc run reported the following. Please correct the root cause
    and remove .git/gc.log.
    Automatic cleanup will not be performed until the file is removed.
    
    warning: There are too many unreachable loose objects; run 'git prune' to remove them.
    
    Already up to date.
    
    
    $ rm -rf .git/gc.log
    
    

    refs



    ©xgqfrms 2012-2020

    www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


  • 相关阅读:
    ASP.NET 表单验证 Part.2(实现表单验证)
    长工的买房故事
    软件界面交互和易用性改进总结[zz]
    访问hotmail邮箱的途径
    Google内部收集员工创意的方法[转载]
    Web2.0地图展望
    C++开源跨平台类库集
    庆祝lucky荣登早教网首页宝宝
    在那些打磨汉芯的日子里[转贴]
    在中国搞技术只能混碗饭吃,没有太大希望
  • 原文地址:https://www.cnblogs.com/xgqfrms/p/14235756.html
Copyright © 2011-2022 走看看