解决办法:
进入SourceTree设置 --- GIT --- 全局忽略列表 -- 编辑
然后把之前误操作的文件夹删除了就OK!
链接:
https://blog.phpgao.com/source_tree_cancel_ignore_files.html