Git 設定筆記
忽略檔案權限造成的異動
統一換行符號
因為 windows 和 linux 的換行符號是不一樣的
跳過 SSL 驗證
git clone 時報錯:Peer's Certificate issuer is not recognized
解決 ssh variant 不支援 port 號的問題
git clone 時報錯:ssh variant 'simple' does not support setting port
因為在 Git 版本 2.16.0 之後 ssh variant 不支援 port 號
解決 unsafe repository 錯誤
Sublime Merge 更新後,commit add 檔案時出現 fatal: unsafe repository ('repository path' is owned by someone else) 錯誤
git config --global core.filemode false
統一換行符號
因為 windows 和 linux 的換行符號是不一樣的
git config --global core.autocrlf true
跳過 SSL 驗證
git clone 時報錯:Peer's Certificate issuer is not recognized
git config --global http.sslVerify false
解決 ssh variant 不支援 port 號的問題
git clone 時報錯:ssh variant 'simple' does not support setting port
因為在 Git 版本 2.16.0 之後 ssh variant 不支援 port 號
git config --global ssh.variant ssh
解決 unsafe repository 錯誤
Sublime Merge 更新後,commit add 檔案時出現 fatal: unsafe repository ('repository path' is owned by someone else) 錯誤
git config --global --add safe.directory '*'
留言
張貼留言