Create a local GIT repository for an existing project

Hello,

When I choose VCS | Enable Version Control Integration on the main menu to assign my project to a VCS (Git), this create a .GIT folder in my project folder. Is it possible to choose where to create this Git repository?

Otherwise I choose VCS | Import into Version Control | Create Git Repository, but once created I can't add any file to this repository.

Could you please help?

Thanks,

Nicolas

0
5 comments
Avatar
Permanently deleted user

Hello,

> Is it possible to choose where to create this Git repository?

No, it is not possible. Git folder should remain in the project directory.

> Otherwise I choose VCS | Import into Version Control | Create Git Repository, but once created I can't add any file to this repository.

Are there any errors? Are the files being displayed as unversioned? What happens when you try to add the files?

0
Avatar
Permanently deleted user

> Are there any errors? Are the files being displayed as unversioned? What happens when you try to add the files?

No errors. No file displayed as unversioned. No file at all, and I can't add files into the list. It's like my project was empty...

0
Avatar
Permanently deleted user

What roots do you have listed in File | Settings (or PhpStorm | Preferences for Mac OS) | Version Control?

0
Avatar
Permanently deleted user

Only the new folder (repository) just created. It is empty.

0
Avatar
Permanently deleted user

Is it the same directory where your project is located or a different one in another place?

0

Please sign in to leave a comment.