Command to open file with git

后端 未结 18 1323
滥情空心
滥情空心 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-30 04:46

    Git has nothing to do with how you open/edit files in your project. Configuring the editor in git is only so that git internal things that require an editor (commit messages for example) can use your preferred editor.

    If you just want to open files from the command line (cmd.exe) as if they were double clicked in the windows explorer, I think you can use start .

提交回复
热议问题