Remove git from project in Xcode 4

后端 未结 6 942
囚心锁ツ
囚心锁ツ 2020-12-13 13:33

I just created a new project in Xcode 4 and I guess I left the \"Create local git repository for this project\" box checked. Now, I would like to remove this version control

相关标签:
6条回答
  • 2020-12-13 13:51

    I had the same problem. Here are the steps to resolving this.

    1. Go to the Organizer (under window menu option)
    2. Go to Repositories
    3. Look at the bottom left corner for the minus button
    4. Select the project to be removed from GIT
    5. Press the minus icon
    6. It should be removed

    This works, even though the class files still have the symbol next to them. Clicking them then clicking another file gets rid of the icon.

    Hope this works.

    0 讨论(0)
  • 2020-12-13 13:51

    If you want to disable Git support in Xcode 4 you'll have to rename "/Developer/Library/Xcode/PrivatePlugIns/IDEGit.ideplugin" to something other than .ideplugin.

    0 讨论(0)
  • 2020-12-13 13:53

    Just remove the .git directory in the project folder. You should close the project in Xcode first to be safe.

    0 讨论(0)
  • 2020-12-13 14:04

    You can easily do that using

    rm -rf .git
    rm -rf .gitignore
    
    0 讨论(0)
  • 2020-12-13 14:09

    I had the same problem. I followed the steps from this blog post and all worked fine for me. I was using Xcode 4.2 on OS X 10.7.3.

    I think the trick is making sure to delete the invisible ".git" folder in the project directory via the command line,... in addition to deleting the repositories via the Xcode GUI.

    I'm now using SourceTree with Mercurial on BitBucket, and am a very happy camper! :-)

    0 讨论(0)
  • 2020-12-13 14:11

    Open Terminal and Type

    Terminal

    $ cd /RootOfProjectFile
    $ rm -rf .git 
    $ rm -rf .gitignore
    

    Manual Delete

    Open Terminal and type

    $ defaults write com.apple.finder AppleShowAllFiles TRUE
    $ killall Finder
    

    simply open the project in finder delete the .git and .gitignore from root/ (Where project file is present)

    0 讨论(0)
提交回复
热议问题