OC系列教程之gitError:unable to access '.config/git/attributes
xcode中git進行commit時提示“warning: unable to access '.config/git/attributes': Permission denied”這種錯誤~
解決方案如下:
開啟終端,依次輸入如下命令:
cd ~/
ls -al
檢視彈出的檔案的歸屬,若是".config許可權歸屬於root",如下圖所示,
若config如上圖所示,則終端接著輸入“sudo chown my_user_name .config”,注意替換my_user_name;
之後git 中提交commit命令程式碼正確上傳
參考連結:
https://stackoverflow.com/questions/27150926/unable-to-access-git-attributes
相關文章
- git configGit
- Unable to create git index lockGitIndex
- ORA-7445(ACCESS_VIOLATION)(unable_to_trans_pc)(UNABLE_TO_WRITE)錯誤
- (Error -1170 @ 0x0) Unable to access the DAP)Error
- unable to access ‘https://gitee.com/XXX/XXX.git/‘: Failed to connect to 127.0.0.1 portHTTPGiteeAI127.0.0.1
- git 入門教程之個性化 gitGit
- git 入門教程之 git 私服搭建教程Git
- git config檔案總結及git alias配置Git
- git 入門教程之github 教程Github
- git 入門教程之版本控制Git
- git檢視config配置資訊Git
- git SSL certificate problem: unable to get local issuer certificateGit
- [Spring Cloud Tutorial翻譯系列二]Spring Cloud Config Server與git整合SpringCloudServerGit
- git 入門教程之忽略檔案Git
- git 入門教程之知識速查Git
- git 入門教程之分支策略Git
- git 入門教程之緊急修復Git
- git 入門教程之撤銷更改Git
- git 入門教程之分支管理Git
- git 入門教程之回到過去Git
- git config配置檔案詳解Git
- git pull報“unable to update local ref”解決方案Git
- canvas系列教程之簡介Canvas
- 解決angular安裝 unable to access 'https:github...' Empty reply from serverAngularHTTPGithubServer
- ORA-07445 ACCESS_VIOLATION,UNABLE_TO_READ問題處理
- Spring Cloud Config-Git後端SpringCloudGit後端
- git 入門教程之變基合併Git
- git 入門教程之協同開發Git
- git 入門教程之本地倉庫Git
- git 入門教程之遠端倉庫Git
- git 入門教程之分支總覽Git
- git 入門教程之衝突合併Git
- git 入門教程之刪除檔案Git
- [Git系列] 前言Git
- canvas系列教程之繪製矩形Canvas
- Git 系列之「Git 的誕生」Git
- Git 系列(二):初步瞭解 GitGit
- GIT clone報錯: SSL certificate problem: unable to get local issuer certificateGit