当我输入 "git commit" 命令时,它没有打开 atom 编辑器?

When I type "git commit" command , it does not open atom editor?

当我在终端输入 git commit 命令时它没有打开 atom 编辑器,我已经完成了 atom 编辑器的所有设置 它也不接受 git 集线器配置的电子邮件 ID 和密码。 图片描述了错误

git commit 用于提交我们添加的更改,例如。使用命令

git add --all

然后将提交添加为

git commit -m "this is a commit"

这在终端上工作正常并且足够了。文本编辑器并不是真正需要的 如果你想打开原子编辑器,我认为你应该更直接地解释你想要做什么和参考 要添加用户名和电子邮件,请使用

git config --global user.name "xyz"
git config --global user.email "xyz@a.com"

您需要自己配置 git 这就是为什么要先提供电子邮件和姓名的原因