removing local git repositary from Xcode Project?

I had selected local git repositary when I created xcode Project.
But when import to SVN and commit, it commits locally not in SVN.
How can I resolve this problem? I want to remove all hidden local git files from the Xcode project without affecting source code? any help please?

  • undo commit in middle of Git history
  • Using someone else's repo as a Git Submodule on GitHub
  • Git ignore file for Xcode 4 projects
  • How do I take a GitHub pull request and simply download that as a separate project?
  • Merging code branch to master using tortoisegit
  • How to create a git repository on my server from the github server?
  • Git Workflow Review
  • Picking commit objects in Git
  • unable to install Git plugin in jenkins
  • Permissions for local development with git and MAMP
  • Does git exclude eclipse project files from a new repo by default?
  • Adding git alias to .bash_profile not working
  • 3 Solutions collect form web for “removing local git repositary from Xcode Project?”

    You can find the solution in this question:
    How to fully delete a git repository created with init?

    You really should try google first before asking on SO.

    Open Terminal and Type

    defaults write AppleShowAllFiles TRUE
    killall Finder

    open the project in finder
    delete the .git

    Good to go. Enjoy

    The local git repository is stored in a folder named .git inside your project folder. It’s hidden (any file/folder starting with a . is) but you can delete or move it using the Terminal. Once it’s gone, your folder will no longer be recognized as having a git repository.

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