将 Atom 和 Github 用于 Windows

Using Atom and Github for Windows

小问题,我用的是atom文本编辑器,今天安装了Github for windows。由于我所有的提交消息都触发了 notepad.exe,我使用以下行来更改我的全局编辑器:

 git config --global core.editor atom

现在每次我尝试提交某些内容时,atom 都会启动并打开指定的文件,但是在我的 powershell windows、git 中说:

Aborting commit due to empty commit message.

是否有任何指南或配置设置可以使 atom 与 windows 的 github 一起工作?谢谢

我在原子论坛找到了一个人建议的解决方案:

 git config --global core.editor 'atom --wait'

我也在尝试将 GitHub for Windows 与 Atom 一起使用。我想知道你是否可以分享你是如何设置自己的。我在 Atom 中安装了 git-plus 软件包,我将它指向我的 GitHub.exe for Windows 可执行文件。当我尝试从 Atom 中执行 Git 添加所有提交和推送 (Ctrl+Shift+A P) 时,即使我添加了一个新的 folder/file,它也会打开 [=19] 的多个副本=] 但其中 none 实际上 'Sync' 使用我的 GitHub 帐户。我已经使用基于 Windows 的 Git Shell 来执行以下操作:

git config --global user.name "First Last"
git config --global user.email myemail@domain.com
git config --global core.editor "atom --wait"

最后,我注意到完全在 Atom 之外,您必须在 GitHub 的 'summary' 字段中为 Windows 键入一些内容,以便同步实际推送文件到我的 GitHub 帐户。对我来说,这与 CLI 相同:git commit -m 'summary'。我不知道 Atom 如何将摘要推送到该字段,所以我不确定 Atom 是否会与 GitHub for Windows.

一起正常工作