.bash_history does not update in Git for Windows (git bash)

后端 未结 7 1165
慢半拍i
慢半拍i 2020-12-13 01:30

I am using Git for Windows (ver. 1.7.8-preview20111206) and even though I have a .bash_history file in my HOME folder, it never automatically gets updated. When I start Git

7条回答
  •  一生所求
    2020-12-13 02:13

    If you use git bash for windows 8, just put this in your ~/.bash_logout file:

    history > .bash_history
    

    Obviously you need a ~/.bash_history file.

    Regards.

提交回复
热议问题