I tried doing git stash apply and I am getting:
warning: Cannot merge binary files: app.xcodeproj/project.xcworkspace/xcuserdata/aditya15417.xcuserdatad/UserInterfaceState.xcuserstate (Updated upstream vs. Stashed changes)
Auto-merging app.xcodeproj/project.xcworkspace/xcuserdata/aditya15417.xcuserdatad/UserInterfaceState.xcuserstate
CONFLICT (content): Merge conflict in app.xcodeproj/project.xcworkspace/xcuserdata/aditya15417.xcuserdatad/UserInterfaceState.xcuserstate
How do I fix this?
xcworkspace files are usually just applicable for the machine & account you’re working on (e.g. user name aditya15417) and shouldn’t be checked in or tracked via Git.
The only project files I check in to my own GitHub account is “
project.pbxproj“.So remove them from git via “
git rm ________” (insert filename there)