RestKit with Xcode4 but not as a GitHub submodule

I was following the readme to
get started using RestKit. Everything works just fine when adding RestKit as a GitHub submodule.

Is there a way I can add RestKit to an already existing Xcode 4 project but not as a GitHub submodule?

  • Run batch file with git pull in gitbash
  • git-svn: On Mac, “error: git-svn died of signal 6” while using git svn dcommit
  • git clone gets gh-pages, I want it to clone master (from Github)
  • What is the correct command for performing a git-rebase in this scenario?
  • Is there a way to store commit comments (like on GitHub) directly inside Git repository?
  • Having trouble working with a Git repository
  • The project I want to add RestKit to is not set up with GitHub repository and will actually go into a subversion repository instead.

    Thanks in advance.

  • MATLAB does not recognize“.m” file changes after switching branches in git
  • Visual Studio 2015 Team Explorer doesn't see existing local repository clone
  • Multiple repos with single submodule
  • Shell script to check if specified Git branch exists?
  • NetBeans anyway to see the commits not pushed to remote git repo
  • Git repo inside repo
  • 2 Solutions collect form web for “RestKit with Xcode4 but not as a GitHub submodule”

    I just downloaded it, placed it in the root of myproject, unzipped it and renamed it to RestKit.

    At the end of the day a git submodule is merely a folder on your hard drive. However, from git’s “viewpoint” it is recognized as a reference to another repository (at a specific commit) rather than a folder of files.

    So if you are using git only (which you are not in this case) then it is a simple yet quite powerful mechanism of nesting projects or including libraries.

    To answer your question, I guess you could do it all from the command line, which might be quicker than downloading and unzipping the source code (depending on your preference of course):

    cd /path/to/your/project
    
    git submodule add git://github.com/RestKit/RestKit.git RestKit
    cd RestKit
    # Checkout the current stable branch
    git checkout 0.9-stable
    # Remove the git repository
    rm -fr .git/
    

    From here you can configure your project according to the installation guide

    Git Baby is a git and github fan, let's start git clone.