简体   繁体   中英

Git commit not working with message

Sending commit message giving error pathspec did not match . I am already using double quotes instead of single quotes. 在此处输入图片说明

Update When I do a commit without message I get this -

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Your branch is up-to-date with 'origin/master'.
#
# Changes to be committed:

Try one of the following:

  1. check to see if added anything for to commit
  2. git commit (without message) to see if you get the commit editor
  3. try to execute the commands vi git bash instead of CMD.
  4. Check to see if you have renamed any file on the file system and not via git mv

It's not git its a windows cmdline thing

Use 2x double quotes to solve the issue

git commit -m "" your commit message ""

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