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



  • 相关阅读:
    jQuery应用 代码片段
    正则表达式大全
    js表单编程
    补充回顾
    Socket网路编程
    异常处理
    day18-2 反射详解
    day18-1 面向对象进阶
    day18-1 多态
    day17-2 继承
  • 原文地址:https://www.cnblogs.com/yuzaipiaofei/p/4124181.html
Copyright © 2011-2022 走看看