Xcode: How can I safely change the location of a project which has a local Git repository?
-
The project is currently in my Dropbox folder. I'd like to move it, but I don't want to confuse Xcode's Organizer or Git. What's the best practice for this sort of thing?
-
Answer:
I believe you just move the project directory. Git stores all of it's data in the `.git` directory and other dot files in the repository's root directory so it won't care if the repository moves. All of Xcode's project and file references should also be independent of the project's root directory location. Build products are identified by project/target name and maybe app id. File references should be relative to their group's directory or the project's root directory unless you explicitly set absolute paths in a file's settings for some reason.
Jonah Williams at Quora Visit the source
Other answers
This might be the answer, at least with respect to Git itself. Still not sure about Xcode/Organizer: http://stackoverflow.com/questions/7949036/moving-a-git-repository
James Martin
Related Q & A:
- How can I dynamically change the height of an iFrame?Best solution by Stack Overflow
- How do I programmatically change the label of a mapped drive?Best solution by Server Fault
- How can I programmatically change the language for non-Unicode programs?Best solution by Super User
- How can I use a button to retrieve a phone 'number' from contacts?Best solution by Stack Overflow
- How can I make a good clay for a school project?Best solution by answers.yahoo.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.