使用SourceTree 无法添加项目

问题:

在某个SourceTree管理的工程目录下,添加项目

使用SourceTree 无法添加项目_第1张图片


居然发现没啥可提交的

使用SourceTree 无法添加项目_第2张图片

解决办法:

打开终端 输入命令

defaults write com.apple.finder AppleShowAllFiles Yes && killall Finder

然后打开添加的项目 发现.git 文件


使用SourceTree 无法添加项目_第3张图片

command+delete 删除该文件 

终端中输入 defaults write com.apple.finder AppleShowAllFiles No && killall Finder  不显示隐藏文件
 

然后打开 sourcetree 

使用SourceTree 无法添加项目_第4张图片

ok  一切又正常

你可能感兴趣的:(使用SourceTree 无法添加项目)