問題:git clone項目的時候報錯,即使是master權限也不行
原因:同事之前使用我的電腦登陸過他的帳號,然後發現我們兩個同時有權限的時候可以clone
解決:查閱質料發現git會緩存帳號密碼,於是想到清除帳號密碼
執行 git config --global credential.helper 命令 再進行操作的時候重新輸入帳號密碼
Windows也可以如下操作刪除:
控制面板\用戶帳戶\憑據管理器
刪除對應版本庫的用戶名密碼
參考:https://help.github.com/cn/articles/caching-your-github-password-in-git#further-reading