Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>We have had the same problem - Windows PCs using Netbeans pushing to a RHEL server with the main repo.</p> <p>The only solution I have found so far is to run <code>git fsck</code>, <code>git prune</code> and <code>git repack remote/origin/master</code> followed by a final <code>git fsck</code>. The first <code>git fsck</code> will show that you have one or more dangling commits and the subsequent commands clean up the repo and you'll then be able to push from Netbeans. I have tried to inspect these but they appear to be nonexistent, so it's a mystery where they come from. The problem doesn't occur if I push from another Linux box, from the command line. All this is over SSH.</p> <p>It's fine when just one user is pushing to the repo, but as soon as someone else does, then the first user will (after doing a pull to be non-fast-forward) get this error. I suspect Netbeans is doing something odd with the push but I don't know what.</p> <p><strong>EDIT:</strong></p> <p>This is basically to do with WRITE privileges as per the comment to this answer, but I've solved it by doing the following (assuming that "developers" is our group that we want to allow to push and that example.com.git is the repo)</p> <pre><code>[tim@dev git]# chgrp -R developers example.com.git [tim@dev git]# chmod -R g+swX example.com.git </code></pre> <p>See <a href="https://serverfault.com/questions/26954/how-do-i-share-a-git-repository-with-multiple-users-on-a-machine">this answer at Serverfault</a> for more info</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload