Chapter 9. Version Control Integration

 

"As a project drags on, my git commit messages get less and less informative."

 
 --Randall Munroe

A lot of my friends use IntelliJ IDEs and hence, have forgotten how to use most Git command-line tools. I can't blame them; the interface that we have is very simple to use, and most of the common commands are available to us in a neatly packed menu. That isn't to say that this layer of abstraction like many others is leaky. In this chapter, I will take a quick look at most of the tools and talk about some limitations. Version control is in no way a simple topic and hence, I won't explain its topics; I'll merely show you how to use the tools available in PyCharm. We will mainly go over:

  • Initializing version control
  • Ignoring files
  • Adding remotes
  • The VCS menu
  • The Changes panel
  • Change lists

Initializing version control

PyCharm supports different version control systems. In the following examples, we will be using a Git repo to elaborate on different features since it's the modus operandi of most development. As most of what we cover in this chapter is VCS agnostic, this will not matter; however, each tool has its own submenu in PyCharm, which we will go over. After we've created our project, we can initialize VCS right away:

Initializing version control

This will give us a popup of all the types of repositories that we can initiate:

Initializing version control
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset