从git shell打开Atom编辑器 [英] Open Atom editor from git shell
问题描述
我正在使用带有1.8 GHZ处理器i5的Win 8-X64机器,我在这台机器上同时安装了atom编辑器和git bash,是否可以通过任何程序从Git启动atom文本编辑器bash shell,反之亦然.
i am using a win 8-X64 machine, with a 1.8 GHZ processor core i5, i have both the atom editor and git bash installed on this machine, is there any process by which i can start atom text editor from the Git bash shell or vice versa.
推荐答案
如果要将原子与所有git操作相关联,请运行:
git config --global core.editor "atom --wait"
If you want to associate atom with all git operations, run:
git config --global core.editor "atom --wait"
如果只想编辑文件,请在git中添加一个别名:
git config --global alias.edit "! atom"
现在您可以通过调用git edit [filename]
If you just want to edit files, add an alias in git:
git config --global alias.edit "! atom"
and now you can edit any file by calling: git edit [filename]
这篇关于从git shell打开Atom编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!