Git误执行git config --global core.excludesfile .idea

warning: unable to access '.idea': Permission denied
fatal: cannot use .idea as an exclude file

SourceTree打开 也不行了 下面是SourceTree打开的提示

图片说明

这个问题 不仅仅出现这个当前 项目 误执行了那条命令 之后 所以的项目 都出现了这个问题

http://bbs.iaixue.com/archiver/?tid-1673.html

git config -h
图片说明

fatal: cannot use /Applications/Sourcetree.app as an exclude file,按照上图敲了几下git命令,搞定了