美文网首页
SourceTree 忽略不要提交的文件

SourceTree 忽略不要提交的文件

作者: iVikings | 来源:发表于2017-10-30 17:26 被阅读56次
1、找到要忽略的文件
终端输入:$ cd ***/Documents/***/***.xcworkspace/xcuserdata
用git status 可以列出modified的文件
2、删除缓存
终端输入:$ git rm --cached ***/Documents/***/***.xcworkspace/xcuserdata/**.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
3、删除远程的文件
终端输入:$ git commit -m ***/Documents/***/***.xcworkspace/xcuserdata/**.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
4、提交
终端输入:$ git push
5、在SourceTree中右键忽略不需要的文件

相关文章

网友评论

      本文标题:SourceTree 忽略不要提交的文件

      本文链接:https://www.haomeiwen.com/subject/twhmpxtx.html