opening sublime text from windows git bash

后端 未结 11 2224
有刺的猬
有刺的猬 2021-01-30 09:15

How do I open Sublime text from Git Bash in Windows? I tried adding the alias at the ~/.bashrc file but nothing worked. I was looking for something very easy but I could not fin

11条回答
  •  我在风中等你
    2021-01-30 10:00

    I followed what Cristiano Ferro did, and if you would like to commit a message with Sublime Text 3, paste this in your git.
    Assuming the program is installed in Program Files:

    export GIT_EDITOR='C:\\Program\ Files\\Sublime\ Text\ 3\\sublime_text.exe'
    

    After this, you can run git commit, and it will open Sublime Text 3.

提交回复
热议问题