V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
jin7
V2EX  ›  问与答

idea intellij/pycharm 的 VCS->Local History 可以设置历史版本的数量吗?

  •  
  •   jin7 · 2020-06-17 23:22:13 +08:00 · 865 次点击
    这是一个创建于 1471 天前的主题,其中的信息可能已经有所发展或是发生改变。

    idea intellij/pycharm 的 VCS->Local History 可以设置历史版本的数量吗?

    想让保存的历史版本数量尽量多一点.

    懒得时不时 git add,commit

    1 条回复    2020-06-17 23:34:37 +08:00
    jin7
        1
    jin7  
    OP
       2020-06-17 23:34:37 +08:00
    https://www.jetbrains.com/help/idea/local-history.html

    Change the retention period of Local History

    Press Ctrl+Shift+A or choose Help | Find Action from the main menu.

    Find and open the Registry editor.

    Modify the value of the localHistory.daysToKeep parameter.

    Click Close and restart IntelliJ IDEA for the changes to take effect.

    Alternatively, you can pass the localHistory.daysToKeep parameter as a Java property by configuring JVM options. For example, to set retention to 30 days, add the following line to the JVM options file:

    -DlocalHistory.daysToKeep=30
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4722 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 01:15 · PVG 09:15 · LAX 18:15 · JFK 21:15
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.