Command to open file with git

后端 未结 18 1294
滥情空心
滥情空心 2021-01-30 04:05
  • I have sublime text as the default editor in git (and it works)
  • git config --edit opens the config file in sublime text (Awesome)
18条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-30 05:02

    A simple solution to the problem is nano index.html and git or any other terminal will open the file right on the terminal, then you edit from there.

    You see commands at the bottom of the edit page on how to save.

提交回复
热议问题