2016-02-05 74 views
1

我有兩臺機器工作。我有一個github帳戶。今天筆者得到消息:致命︰無法在git中創建

Username for 'https://github.com': jgoldstick 
Password for 'https://[email protected]': 
Counting objects: 29, done. 
Delta compression using up to 2 threads. 
Compressing objects: 100% (14/14), done. 
Writing objects: 100% (16/16), 2.61 KiB | 0 bytes/s, done. 
Total 16 (delta 12), reused 0 (delta 0) 
To https://github.com/jgoldstick/baseball.git 
    7be5c2d..d324acb master -> master 
fatal: Unable to create '/home/jcg/code/python/venvs/baseball/.git/refs/remotes/origin/master.lock': Permission denied 
Unexpected end of command stream 
(baseball)[email protected]:~/code/python/venvs/baseball$ 

但是在GitHub上,它看起來像推動工作。什麼導致了錯誤信息?

回答

2

這裏的錯誤消息:

fatal: Unable to create '/home/jcg/code/python/venvs/baseball/.git/refs/remotes/origin/master.lock': Permission denied 

這看起來像本地機器( github上)上的目錄。您當前的用戶(jcg)沒有該文件的權限。這是一個鎖定文件。嘗試重新啓動您的機器。如果這不起作用。您可能需要遞歸地chown或chmod該目錄以給予您正確的權限。

+0

我會嘗試一下,但是我已經從這臺機器推過來了 –

相關問題