
To do that, place the caret at the symbol discr, press Shift+F6, and type the new name discriminant. For example, let's rename the discriminant.
Second (and most handy) is to use the Git widget in the Status bar:Īs you see, we are now working in the master branch. The pop-up window of existing branches appears: First, there is a special command on the main menu VCS→Git→Branches. To make sure your changes appeared in your repository, open the Log tab of the Changes tool window:Īctually, this information is available in the Logs tab, but there are two another ways to see the current branch: Next, type your check-in comment, and click Commit. To do that, select the file Solver.py in the Changes tool window, and press Ctrl+K. Next, let's commit the new file to the local repository. See that the color code of the file Solver.py changed again - now it's green, which means that the file is under version control, but the change is not yet committed.
Select the file Solver.py in the Project tool window, and press Ctrl+Alt+A. P圜harm provides several ways to put a file under version control.
Finally, if you open the Settings/Preferences dialog (on Windows, press Ctrl+Alt+S), and then click Version Control, you will see that the directory MySimplePythonApplication is now associated with Git:. It means that the new file is still not added to the version control ( later we'll see how it's done). Next, the file Solver.py changes its color in the Project tool window and in the editor tab:. We immediately see changes in the P圜harm's UI: git directory right below the project root: After that all the files in the directories below this parent can be considered stored in this repository. git folder in the specified parent directory.
Then select Create Git repository:Īs you already know, Git sets up a local repository by creating a.
Press Alt+` to show the the most popular VCS commands (same action is available on the main menu: VCS→VCS Operations Popup).
The Git integration plugin is enabled and the location of the Git executable file is correctly specified on the Git page of the Settings/Preferences dialog box. You can use the project from the Getting Started tutorial. You are working with P圜harm version 2.7 or higher. Using Git per se is out of scope of this tutorial. In this tutorial we'll go step by step through using Git integration with P圜harm: creating a Git repository, committing changes, creating branches, etc.