Command to open file with git

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

    I just downloaded Git 2.7.0 and added an alias to the .bashrc for editing files with VS Code:

    alias code='/c/Program\ Files\ \(x86\)/Microsoft\ VS\ Code/bin/code.cmd'
    

    Should also work with other Editors...

提交回复
热议问题