V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
jin7
V2EX  ›  问与答

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

  •  
  •   jin7 · Jun 17, 2020 · 1237 views
    This topic created in 2151 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   ·   3103 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 13:46 · PVG 21:46 · LAX 06:46 · JFK 09:46
    ♥ Do have faith in what you're doing.