jin7
V2EX  ›  问与答

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

  •  
  •   jin7 · Jun 17, 2020 · 1300 views
    This topic created in 2192 days ago, the information mentioned may be changed or developed.

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

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

    懒得时不时 git add,commit

    1 replies    2020-06-17 23:34:37 +08:00
    jin7
        1
    jin7  
    OP
       Jun 17, 2020
    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
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2304 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 00:44 · PVG 08:44 · LAX 17:44 · JFK 20:44
    ♥ Do have faith in what you're doing.