Using emacs (and magit?) to visit a file in given commit/branch/etc

前端 未结 4 1558
无人及你
无人及你 2021-01-30 22:34

If I want to see how foo.bar looked like in some certain commit then I can invoke:

git show :foo.bar         


        
4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-30 23:08

    If you are viewing the commit in magit you can just press Enter on the file or part of the file you are interested in.

提交回复
热议问题