2011-09-02 42 views
5

我在公司網絡驅動器上有一個git存儲庫,並且沒有任何問題。然而,我無法將任何承諾推入其中,儘管我有一些好運氣,但最近我無法獲得任何內容。錯誤是:在推送提交時,主服務器無法寫入錯誤

C:\Program Files\Git\bin\git.exe push "origin" master:master error: Couldn't set refs/heads/master To //software/pdd.git/ ! [remote rejected] master -> master (failed to write) error: failed to push some refs to '//software/pdd.git/' Done

我懷疑它有與master文件。在Windows上,它顯示我可能已被放入一個網絡組,不允許我進行修改,但能夠讀取,寫入和執行。

我的問題是:如果我能夠推幾次之前,這個文件許可的事情應該不是我的麻煩。如果它確實沒有足夠的修改權限,是否有解決方法?

PS:公司不願意將我的網絡組更改爲另一個網絡組,這使我可以修改文件。

回答

6

檢查問題「Pushing to a Git repository on an NFS share fails 」:

The NAS is doing weird things to permissions, setting the sticky bit on all directories. This explains the behavior. An additional chmod solved the problem.

這意味着這是在目標(遠程)側權限問題,如圖「 Git issues after upgrading to osx Lion 」:

there was an odd permission for everyone as ‘custom’. I updated this to be ‘Read & Write’ and the commit was finally successful.

作爲「 workaound」,看到這個Error section

I just deleted my bare repository and created a brand new one and pushed my changes over there. And everything works again.

+0

它seeems就像我沒有足夠細說IT方面如何不會因我的公司合同而改變我的隱私。感謝您的建議,儘管 – freonix

+0

@freonix:因此您需要與IT支持團隊取得聯繫,瞭解特權如何與您的情況兼容,而不會影響他們的政策。 – VonC

+0

很高興,但是我的上司表示他已經傳達了這個信息,但似乎並沒有穿過高層。 – freonix

相關問題