zoukankan      html  css  js  c++  java
  • gitolite push fail solutions

    在提交代码中遇到无法提交的问题:

    现象:

    yuanwei@ubuntu:~/s400_d$ ls

    default.xml
    yuanwei@ubuntu:~/s400_d$ git push --all

    fatal: remote error: access denied or repository not exported: /s400_d.git


     
    yuanwei@ubuntu:~/s400_d$ ls
    default.xml
    yuanwei@ubuntu:~/s400_d$ git remote -v
    origin git://192.168.2.132/s400_d.git (fetch)

    origin git://192.168.2.132/s400_d.git (push)


    解决:

    添加一行参数  

     --enable=receive-pack

    yuanwei@ubuntu:~/s400_d$ cat /etc/sv/git-daemon/run 
    #!/bin/sh
    exec 2>&1
    echo 'git-daemon starting.'
    exec chpst -ugitdaemon:gitolite \
      "$(git --exec-path)"/git-daemon --verbose --reuseaddr \
       --export-all --enable=receive-pack  --base-path=/home/gitolite/repositories  /home/gitolite/repositories



    yuanwei@ubuntu:~/s400_d$ git push
    No refs in common and none specified; doing nothing.
    Perhaps you should specify a branch such as 'master'.
    Everything up-to-date



  • 相关阅读:
    基本运算符和if判断
    数据类型
    Day 5内存管理,定义变量
    Day 4 变量常量
    编辑语言的分类
    硬盘工作原理
    计算机组成原理
    hdu5293 lca+dp+树状数组+时间戳
    hdu5290树形dp
    hdu5294 网络流+dijskstr
  • 原文地址:https://www.cnblogs.com/yuzaipiaofei/p/4124181.html
Copyright © 2011-2022 走看看