从 git shell 打开 Atom 编辑器 [英] Open Atom editor from git shell
问题描述
我使用的是 win 8-X64 机器,处理器内核为 1.8 GHZ i5,我在这台机器上安装了 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.
推荐答案
如果要将 atom 与所有 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屋!