切换分支的时候会报一个:Workspace associated with branch ‘XXX’ has been restored ,意思是还原这个工作区你打开了哪些文件,等, 参考地址:地址 gitignore的使用,B站视频,地址