Setting up a local repository

As you might remember from the previous section, the first step to version control with Git is to initialize a local repository.

To do this, go to VCS in the menu bar and choose Enable Version Control Integration. If you don't see this option in your PyCharm project, this means that you already have your Git integrated, so simply move on to the next step. Otherwise, a pop-up window will appear asking for the version control tool you'd like to use. Choose Git for this option, as illustrated in the following screenshot:

Choosing Git for version control in PyCharm

As you can see, there are other options for version ...

Get Hands-On Application Development with PyCharm now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.