How to back to revision in xcode4?

Discussion in 'iPhone/iPad Programming' started by mikezang, Aug 6, 2011.

  1. macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #1
    It might be too late to ask this basic question.

    I knew how to back to revision in xcode3, but I never use it until now since I use Xcode 4.

    Today I try to back to past revision for my project, but I don't know how to do it, I checked Xcode 4 User Guide, it seems like there is no such contents.

    Please give me some hint. Thanks a lot.
     
  2. macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #2
    Do you mean a revision in terms of a version control system like Git or Subversion, or a revision in terms of a snapshots taken when you refector for example?
     
  3. thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #3
    I mean revision in Git of Xcode 4, I commit all before I made a big modification, I want to restore committed source after I found that modification is not good, but I am not sure how to do it, I thought there should be a button to retrieve revision....
     
  4. macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #4
    XCode 4 has the stupidest idea of reverting by copying and pasting older versions of code over the local copy. XCode 4's version control "features" are brain-dead, especially for Git.

    Just use standard git commands in Terminal to revert.
     
  5. thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #5
    Thanks a lot! Sometimes Apple is also stupid?!
     

Share This Page