Xcode 自带git 使用,忽略用户数据

终端命令:

1.git rm --cached

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

3.git push


或者如下面所示:

$ git rm --cached iLedger.xcodeproj/project.xcworkspace/xcuserdata/Alex.xcuserdatad/UserInterfaceState.xcuserstate
$ git commit -m "Removed the stupid strange file that shouldn't be tracked"
$ git push


你可能感兴趣的:(Xcode 自带git 使用,忽略用户数据)