Command to open file with git

后端 未结 18 1647
滥情空心
滥情空心 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:04

    Assuming you are inside your repository root folder

    alias notepad="/c/Program\ Files\ \(x86\)/Notepad++/notepad++.exe"
    

    then you can open any file with Notepad++ with:

    notepad readme.md
    

提交回复
热议问题