Add files to the project.
You decide that you want to use a VCS.
Menu – > VCS -> Import into VCS – > GIT -> Create GIT Repository.
Right click on Project -> Git -> Commit directory.
Go to GitLab / GitHub / Other and create remote project.
Return to PyCharm.
Add the remote repository to PyCharm’s VCS using the url/link provided by the remote repository.