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
请先登录再写评论。
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?
> 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...
What roots do you have listed in File | Settings (or PhpStorm | Preferences for Mac OS) | Version Control?
Only the new folder (repository) just created. It is empty.
Is it the same directory where your project is located or a different one in another place?