Search code examples
gitxcode4

Using git rather than SnapShots in XCode 4


I set up a local git repositories in order to have something a bit more organised than Snapshots. By local, I mean on the same host that XCode is running.

For the time being I am using snapshots as well.

So far as git is concerned the process of committing goes fine and I can see the changes fine but I can't work out how to get an old version back from within XCode4.

What I am asking is, specifically.

If your git is on the same local host as the running version of XCode, how do you revert to an earlier version of your programme from within XCode using your git repository.


Solution

  • The answer to my own question (Thanks Fkz) is that it appears that within XCode4 you can't actually pull previous commits back. In summary, Xcode allows you to commit changes but not revert, however you can revert to the last saved version using a file menu entry.

    I thought that this was what git would let me do from within XCode4.

    Apparently I have to recover old commits from outside XCode4 using standard git commands.

    This post is helpful

    Xcode 4 git integration