我无法将代码推送到git服务器

时间:2016-09-17 06:02:49

标签: git github

我无法将代码推送到git服务器。请查看推入git时显示的错误。

 Counting objects: 7, done.
 Delta compression using up to 2 threads.
 Compressing objects: 100% (3/3), done.
 Writing objects: 100% (4/4), 457 bytes, done.
 Total 4 (delta 1), reused 0 (delta 0)
 Unpacking objects: 100% (4/4), done.
 fatal: Unable to create     '/home/gituser/GIT/poc.git/refs/heads/master.lock': Permission denied
 fatal: The remote end hung up unexpectedly
 fatal: The remote end hung up unexpectedly

使用Redhat 6,nginx。 请提供解决此错误的解决方案。提前谢谢大家。

1 个答案:

答案 0 :(得分:1)

在用户Andrea的帮助下,我已经解决了这个错误。这是How to configure an existing git repo to be shared by a UNIX group下面的链接

echo "
<div id='parent'>";

for($i=0;$i<12;$i++){
    echo "
    <div>Red</div>
    <div>White</div>
    <div>Blue</div>";
}

echo "
</div>

<style>
    #parent > div:nth-child(3n+1){background:red;}
    #parent > div:nth-child(3n+2){background:white;}
    #parent > div:nth-child(3n+3){background:blue;}
</style>";




<?php
    $cats = get_categories();
    echo "<div id='parent'>"
    foreach( $cats as $cat ) {
        echo "<div>".$cat->name."</div>";
    }
    echo "</div>";
?>

<style>
    #parent > div:nth-child(3n+1){background:red;}
    #parent > div:nth-child(3n+2){background:white;}
    #parent > div:nth-child(3n+3){background:blue;}
</style>

运行这些命令并尝试它。现在,您可以在git存储库中推送代码。 再次感谢andrea和Mark。