I mostly do my C/C++ programming on the command line (Vim, Gdb, Valgrind, etc.), but since having used IDEs for other languages (like IntelliJ for Java, etc.), I wanted to get started using Xcode on my MacBook for developing in C/C++. My issue is this: Generally, I have a GitHub/GitLab repo setup with my source files, makefiles, etc at the root of the repo. (e.g. reponame / main.cpp) When I set up a new "project" with Xcode, and use Xcode's git integration to push files to GitHub, it places them in two nested folders. (e.g. reponame / Xcode_Project_name / Xcode_Project_name / main.cpp) Not only does this look odd, it's confusing for friends who are pulling the code to take a look, but are not on a Mac (the project may be cross-platform, and they are on Linux). So I tried this: Create the main.cpp, etc files on the command line, and push to the git repo, so that the repo is organized with the source files at the base. (e.g. reponame / main.cpp ) Then use Xcode's source control features to clone a repo. This apparently just pulls the repo, places them at the root of the folder I select, and does not provide any sort of "context" (*.xcodeproj, etc). Xcode acts as if it has no idea what these files are, and acts as a simple text editor. Is there a way to "import" a preexisting repository (that isn't set up for Xcode) into an Xcode project, so that I can use Xcode's tools and editor to work on it? (This would be a preferred solution) -- or -- Is there a way to create a project in Xcode, but have it maintain the code in a folder outside of the nested structure that it seems to want to put them in? Many thanks in advance!