忽略UserInterfaceState.xcuserstate

GIT忽略iOS項目UserInterfaceState.xcuserstate

 

1.刪除倉庫中跟蹤的UserInterfaceState.xcuserstategit

    git rm --cached iamhere/IAmHere.xcodeproj/project.xcworkspace/xcuserdata/hayden.xcuserdatad/UserInterfaceState.xcuserstatevim

    git commit -m "Removed file that shouldn't be tracked"xcode

    git pushspa

 

2.忽略UserInterfaceState.xcuserstate,在倉庫根目錄下:code

    vim ./.git/info/excludeit

    而後按「i」進入編輯模式,將UserInterfaceState.xcuserstate追加到文件末尾,注意要填寫項目相對路徑class

相關文章
相關標籤/搜索