Adding existing Qt Creator project to Git

git, qt

Solution

If you have a SC system installed, then under to Tools menu you should see it listed. In mine, for example, Git appears as an option. When you select Git, the submenu has an option to Create Repository. When selected it asks you to select the folder for the respository.

You need to install external tools and then configure Qt creator to use those tools. Under Preferences, select Version Control then the Git tab. Make sure that the Git tools are in the Path. Look here for the tools; https://git-scm.com/downloads.

Problem

Qt Creator comes with git functionality if you've got it installed. Trouble is, it seems you can only make a project version-controlled when you create it? Eclipse, on the other hand, allows to add a project to version control at any time. Another difference is that with Eclipse the repo can be anywhere and is separate from your workspace, but with Qt Creator it looks like the project and the repo are one and the same directory. So, - Is there a way to add an existing project to version control in Qt Creator? - When you do this, is there a way to make the directory with the Qt Creator project and the repo directory different and independent?

Original source