How can I find the URL for my local Git repository?

I am developing a project in Xcode, using a local Git repository for Source Control. Now I want to clone the project, but need to specify the URL of the repository. I have searched but it seems to be well hidden.

Replies

I understand it is a hidden file in the project folder:

XCode has to adhere to the same Git repository rules as anything else, which means that the root project folder has a (hidden) folder called '.git' where all the repository data is kept. So the root project folder is your git repository folder, and SourceTree can use that too.

the git repository is the directory ".git" inside your project directory.

Setting the "Source Path/URL" of a SourceTree bookmark to the top level Xcode project works for me with Xcode 4.2.

h ttps://community.atlassian.com/t5/Questions/Where-does-Xcode-4-3-1-store-local-git-repository/qaq-p/269228


To show hidden files

h ttps://ianlunn.co.uk/articles/quickly-showhide-hidden-files-mac-os-x-mavericks/

or

h ttps://nektony.com/how-to/show-hidden-files-on-mac


Hope that helps.

Perfect. Thanks very much.

Did that solve your problem ?


If so, don't forget to mark the correct answer to close the thread.


Good luck.