In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces the relevant knowledge of "what is the Pycharm version control system". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. Theme
Introduce the version control system of Pycharm
2. Preparatory work
(1) Pycharm version 2.7 or higher
(2) A project has been created, see Getting Started tutorial
(3) VCS is installed and configured and has remote access permission.
3. Enable VCS
Pycharm default versioning is not available, but the command can be found in the VCS menu:
At this time, Pycharm will browse external resources based on local history, and you can even enable the version control system from this menu. However, version control is only for the project root directory. For more specific configuration, please see the following section.
4. Enable version control
Click the control button on the main toolbar and click Version Control. By default, there is only the root directory.
First, click the green plus sign, in the Add VCS Directory Mapping dialog box, click the ellipsis button, select the corresponding directory, and specify the version control system in the following menu (use Git here).
Of course, you can specify a corresponding version control system for each directory.
Then, click apply to close the dialog box
5. Influence on the appearance of Pycharm
(1) the color of the Solver.py file has changed, which means that version control has not been added.
(2) the Changes tool window window appears, similar to a button at the lower edge of the Pycharm. Click it to open a window to view files that have not been versioned.
(3) more commands appear on the VCS menu, and allow you to view changes to the project and update the entire project, corresponding to and buttons. Response commands are also added to the main toolbar.
(4) Git node appears in VCS menu and project shortcut menu (depending on the version control selected), which contains specific VCS commands.
(5) Git widget appears in the status bar
6. Add version control to a file
Files that are not versioned in the Changes tool window window are displayed as follows:
Select Solver.py, press Ctrl+Alt+A to add the corresponding version control, the file color changes to green, added successfully, but has not yet been hosted. Move the file to the Default change table and press Ctrl+K (or) to host:
To verify that is correct, click the Commit button:
When you're done, the Solver.py file name turns black again, meaning there are currently no unupdated changes.
7. Files in the .idea directory
Click the button in the Changes tool window window and find that the files in the idea directory under the project root directory are not versioned, and these files are not visible in the project window.
This part of the file saves the configuration information of the project, and we need to replace it, except for the version control file.
8. Ignore files
Open the Ignored Files page page of the settings dialog box (set up → Version Control → Ignored Files) and view the list of files ignored by default:
Click the green plus sign to ignore more files, see Configuring Ignored Files for more details.
9. Changes in the editor
Edit the code, and the left slot marks all changes:
Click a tag and a tool window pops up:
This pop-up toolbar can help you navigate, browse changes, and so on.
For more information, see Using Change Markers to View and Navigate Through Changes in the Editor
The code file name turns blue, which means that there are currently unmanaged changes.
10. Get the update date
Press Ctrl+T
Click the button
Use VCS → Update Project... Menu command
This is the end of the content of "what is the Pycharm version control system". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.