如何将 IntelliJ/Pycharm 设置置于版本控制之下?

How to put IntelliJ/Pycharm settings under version control?(如何将 IntelliJ/Pycharm 设置置于版本控制之下?)

本文介绍了如何将 IntelliJ/Pycharm 设置置于版本控制之下?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 PyCharm 和许多其他 JetBrains IDE 的常客.我尝试让我的设置在不同的 IDE 之间保持同步,但我现在正在考虑迁移到 IntelliJ IDEA,我发现很难弄清楚我所做的更改以及不同设置文件之间的差异.

I'm a frequent user of PyCharm and a number of the other JetBrains IDEs. I try to keep my settings synchronized across the different IDEs, but I'm now considering moving to IntelliJ IDEA and am finding it extremely difficult to figure out what I've changed and what the differences are among my different settings files.

我如何将我的 PyCharm 设置文件置于版本控制之下,以便我可以跟踪我的更改并快速恢复到旧版本,以便我可以放心地尝试新的设置更改?

How can I put my PyCharm settings files under version control so that I can track my changes and also quickly revert back to old versions so I can try out new settings changes without fear?

(我不介意每次都导出到特定的仓库,但设置似乎总是导出为 JAR 文件,不适合 VCS.)

(I don't mind exporting to a specific repo each time, but it seems that the settings always export as JAR files, which don't lend themselves to VCS.)

推荐答案

我正在使用 Settings Repository 用于在 PyCharm 和 PhpStorm 之间同步设置的插件,它运行良好.它实际上在设计时考虑了版本控制和团队共享,请参阅 github 上的项目 repo 并已构建支持冲突解决、合并和覆盖远程或本地.

I am using the Settings Repository plugin to syncronize settings between PyCharm and PhpStorm and it is working very well. It is actually designed with version control and team sharing in mind, see project repo on github and have built in support for conflict resolution, merge and overwriting remote or local.

它还支持文件系统,据我所知,它存储的是 git 存储库的镜像版本.

It does also support file system and, from what I can tell, what then is stored is the mirror version of the git repository.

这篇关于如何将 IntelliJ/Pycharm 设置置于版本控制之下?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:如何将 IntelliJ/Pycharm 设置置于版本控制之下?

基础教程推荐