Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Xcode doesn't forget deleted files after a Git checkout of an older commit

AxevaAxeva Posts: 48Registered Users
I've got Xcode (4.5) running a project stored in a git repository. In theory, I should be able to git checkout different versions of the code (from the command line) to see how things looked at various points in time.

In practice, Xcode doesn't handle the changes well. Files that are missing from older versions of the source are not forgotten by Xcode. They show up in red as if they're missing. Those files are not missing. They just didn't exist at the time the prior commit was done.

My guess is that this is happening because of something in the xcuserdata that isn't reset each time a new checkout happens. It's blocked by the .gitignore.

Any idea how I can fix this? Thanks.
<a href="http://www.axeva.com"; target="_blank">Axeva.com</a><br />
<br />
<div align="center"><font color="Gray">Apps • Mobile • Web</font></div><br />
View my apps in the iTunes app Store:<br />
<ul><li><a href="http://itunes.apple.com/us/app/colorto
Tagged:

Replies

  • Duncan CDuncan C Posts: 9,114Tutorial Authors, Registered Users @ @ @ @ @ @ @
    You need to tighten up your .gitignore file so it is not ignoring the relevant project file. I don't remember which file that is offhand, but your gitignore is missing the Xcode file that specifies which files are part of the project.
    Regards,
    Duncan C
    WareTo

    widehead.gif
    Animated GIF created with Face Dancer, available for free in the app store.

    I'm available for one-on-one help at CodeMentor
Sign In or Register to comment.