git常見錯誤解決:
error: src refspec master does not match any.
error: failed to push some refs to '[email protected]:/data/git/myfirst.git'
服務端沒有許可權.修改/data/git/myfirst.git許可權為644
fatal: could not read from remote repository.
fatal: not a git repository (or any of the parent directories): .git
本地版本管理倉庫被刪除了,需要重新初始化倉庫
ssh authentication refused: bad ownership or modes for directory /home/user
從字面上可以看出是目錄的屬主和許可權配置不當,查詢資料得知:ssh不希望home目錄和~/.ssh目錄對組有寫許可權,通過下面幾條命令改下
chmod g-w /home/userchmod 700 /home/user/.ssh
chmod 600 /home/user/.ssh/authorized_keys
git常見錯誤
如果輸入 git remote add origin git github.com djqiang github帳號名 gitdemo 專案名 git 提示出錯資訊 fatal remote origin already exists.解決辦法如下 1 先輸入 git remote rm origi...
Git常見錯誤
如果輸入 git remote add origin git github.com djqiang github帳號名 gitdemo 專案名 git 提示出錯資訊 fatal remote origin already exists.解決辦法如下 1 先輸入 git remote rm origi...
git常見錯誤
1 錯誤 error cannot lock ref refs remotes origin dev ref refs remotes origin dev 解決辦法 進入到專案根目錄,執行命令 rm git refs remotes origin dev git fetch2 git reset ...