How can I get Emacs to revert all unchanged buffers when switching branches in git?

前端 未结 3 785
面向向阳花
面向向阳花 2020-12-23 09:13

Often, when I switch branches in git, if the files are open in emacs, then emacs asks if I want to revert them (as it thinks they\'ve changed on disk) even though the conten

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-23 10:09

    Magit package do this automatically, when you activate magit-ionotify-mode (inotify need emacs 24.4 on linux). Its description you can find here.

提交回复
热议问题