Putting existing project under source control in Xcode 4.3.2
I was looking for a way to put my existing project under source control, and I looked at this question, but it looks like that solution only worked with Xcode 4.0 because I can’t find a way to do what is advised. I also looked at this question, but that solution doesn’t work either because my project isn’t currently under source control. How can I get my existing project under source control?
I want it to be a git repository, not subversion.
- ObjCMongoDB broken? I can't get it to work
- Can git be integrated with Xcode?
- How to undo xcode discard all changes if not committed
- Set Xcode bundle version to git hash
- Xcode workspace source control only working for first added project
- My xcode is showing two branches open at same time in source control
3 Solutions Collect From Internet About “Putting existing project under source control in Xcode 4.3.2”
you can do it in terminal using:
git init git add . git commit -am 'a descriptor of your first commit'
This should then be picked up in Xcode, you may need to close and re-open
Hope it helps
If you want to get existing project by xcode (not command line), you can follow this:
- Open “Welcome to XCode” window (below menu Window, or press Shift-Cmd-1)
- Select “Connect to a repository”
- Paste your git URL, and Next.
You can read more in http://www.mindthe.net/devices/2011/04/28/12-steps-to-using-github-with-xcode-4/
Here’re the steps that can achieve this, but requires cloning your existing project to a new one:
1, (Assume your project is not already under local source control) Create a new project under LOCAL source control (Please note that adding remote source control at this stage may not be successful)
2, Make this new project a clone of your old project – drag files, add frameworks, etc.
3, In menu “Source Control” -> -> “Configure ”
In the new window, click on “Remotes” -> “+” -> “Add Remote”
Name: anything (you can use “BitBucket”)
5, “Source Control” -> “Commit”
6, Select “push to remote” at the left bottom corner
7, Click “Commit”
8, Check on BitBucket website to see if it’s actually pushed to it
- Objective-C – CTFont change font style?
- Converting Country Codes to Country Names
- PJSIP TLS connect() error: End of file (PJ_EEOF)
- Indoor positioning on iOS with Core Location – not accurate?
- Increase the font size of emoji characters in a UITextView in iOS 5.x
- Check if the time and date is between a particular date and time
- dateFromString returns nil for some values
- Gesture recognition with UIWebView
- How do i remove text from back button on navbar within Xcode?
- duplicate symbols in AdMob
- Ctrl-Drag from button to method not working. Xcode/Interface Builder
- How to display unique elements of an array using Swift?
- How do I build an xcode project for the itunes store?
- Xcode build setting “Build Products Path” (CONFIGURATION_BUILD_DIR) is a lie?
- iOS: Multi-line UILabel in Auto Layout