Help Center/ CodeArts Repo/ FAQs/ Troubleshooting/ Message "syntax error near unexpected token `newline'" Is Displayed
Updated on 2023-09-06 GMT+08:00

Message "syntax error near unexpected token `newline'" Is Displayed

Symptom

The message syntax error near unexpected token `newline' is displayed after the git add command is executed.

Analysis

The command contains a diamond operator (<>).

Solution

Delete the diamond operator (<>) in the command, for example, git add README.md.