0

I am trying to run the following git command using windows terminal:

git submodule foreach --recursive 'git add --all'

Apparently there is a problem with '. How can I escape that?

git add --all: -c: line 0: unexpected EOF while looking for matching `''
git add --all: -c: line 1: syntax error: unexpected end of file
Mokus
  • 10,174
  • 18
  • 80
  • 122
  • `'` has no special meaning for Windows command processor `cmd.exe` in comparison to Linux shell interpreters. Use `git submodule foreach --recursive "git add --all"` which could be used also in Linux shell script in this case. In a Linux terminal run `man sh` and read about the difference on quoting with `'` and quoting with `"`. – Mofi Jun 16 '20 at 12:32
  • 1
    Have you read https://stackoverflow.com/questions/24173825/what-does-single-quote-do-in-windows-batch-files ? – mike Jun 16 '20 at 18:16

0 Answers0