Mac - 从 Git 终端删除大于号 '>'
Mac - Remove the Greater Than '>' From Git Terminal
我是新手,反正我在终端上研究 git
,我写了这个语句来尝试手动推送提交:
> git commit -m "commit this"
我得到的是下一行的 >
符号,我尝试退出并返回我的密码,但没有任何反应,当我在新的一行上它一直给出 >
符号点击进入。我尝试 q
退出,但仍然没有任何反应。如何在不关闭终端的情况下摆脱困境?我确实使用 mac 顺便说一句。
您可以尝试 Command (or Cmd) ⌘ and C
退出。
I tried exiting and going back to my pwd, nothing happened, it kept giving the > symbol on a new line when I hit enter. I tried q to quit nothing still happens. How do I get out of this without closing my terminal?
键入 ctrl-D
,即按住 control
键并键入 D
。 ctrl-D
是您键入 'end of file' 个字符的方式。
我认为发生的事情是您在提交消息中遗漏了结束引号,即您做了类似的事情:
git commit -m "commit this
如果不关闭 "
,git 将继续等待更多输入,这就是您得到 >
提示的原因。输入和文件结束字符告诉它已到达输入的末尾。
我是新手,反正我在终端上研究 git
,我写了这个语句来尝试手动推送提交:
> git commit -m "commit this"
我得到的是下一行的 >
符号,我尝试退出并返回我的密码,但没有任何反应,当我在新的一行上它一直给出 >
符号点击进入。我尝试 q
退出,但仍然没有任何反应。如何在不关闭终端的情况下摆脱困境?我确实使用 mac 顺便说一句。
您可以尝试 Command (or Cmd) ⌘ and C
退出。
I tried exiting and going back to my pwd, nothing happened, it kept giving the > symbol on a new line when I hit enter. I tried q to quit nothing still happens. How do I get out of this without closing my terminal?
键入 ctrl-D
,即按住 control
键并键入 D
。 ctrl-D
是您键入 'end of file' 个字符的方式。
我认为发生的事情是您在提交消息中遗漏了结束引号,即您做了类似的事情:
git commit -m "commit this
如果不关闭 "
,git 将继续等待更多输入,这就是您得到 >
提示的原因。输入和文件结束字符告诉它已到达输入的末尾。