git show old version of file in editor

前端 未结 4 1296
盖世英雄少女心
盖世英雄少女心 2020-12-29 21:13

I figured out I can show old versions of a file using \'git log filename\' to show the commits, and then use \'git show commit-id:filename\' for the old version. But it just

4条回答
  •  情歌与酒
    2020-12-29 21:50

    Just use > and put it into a file that you can open in emacs.

    git show commit-id:filename > oldfile
    

    Then open the file in emacs.

提交回复
热议问题