Creating a new project from scratch using VCS tooling in PyCharm
Let’s make a new project. The code for this project is in the repo for the book, but you don’t really want to just open that copy because it will already be associated with a repository, and you won’t see everything I’m about to show you. For this exercise, you should create a new project from scratch as I am about to do.
Click the hamburger icon in the top-left corner of the application to activate the main menu, then click File | New Project. I’m going to call my project project_git_demo
. I’ll leave everything else as default. You can see my project creation dialog in Figure 5.8.
Figure 5.8: My demo project settings
We now have a project with which we can work.
Initializing the local Git repository
After my project has been created, I need to initialize a Git repository. Manually, we did this with the git init
command. In PyCharm, we can...