简体   繁体   中英

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. 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:

> _

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. 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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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