简体   繁体   English

Git在本地提交不工作,停止并挂在bash中闪烁的光标

[英]Git commit locally not working, stalling and hanging to blinking cursor in bash

All of a sudden this morning, I can't seem to commit to git. 今天早上突然间,我似乎无法承诺git。 When I run: 当我跑:

git commit -m 'replacing location.origin with location.host as former isn't supported in ie8'

It never seems to execute, I'm left in my git bash with: 它似乎永远不会执行,我留在我的git bash中:

> _

Where the underscore blinks. 下划线闪烁的地方。

I was able to run a git status and git add fine, I just can't seem to commit, where I've never had this problem before. 我能够运行git状态并且git添加正常,我似乎无法提交,我以前从未遇到过这个问题。 Anyone have any ideas what's going on and how I can fix this? 任何人都有任何想法发生了什么以及如何解决这个问题?

I've restarted my PC (I do this first thing every Monday am). 我重新启动了我的电脑(我每周一都做第一件事)。

I also tried running a git gc. 我也尝试过运行git gc。

You used a ' in your log message, which ends the string quotation. 您在日志消息中使用了',结束了字符串引用。

Do not use -m, or escape the ' like '\\'' or put the whole thing in "…" instead or use typographic question marks ' inside the commit message instead of the ASCII apostrophe. 不要使用-m,或者转义'like'\\''或者将整个内容放在“...”中,或者在提交消息中使用印刷问号而不是ASCII撇号。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM