Step in the above screenshot: I'm learning to add a username to Git, and I'm typing $git config --global user.username in the terminal, but I get an error.
As you can see in the second line from the bottom of the screenshot, zsh:parse error near `\n' appears and you cannot add a username to Git.
I searched Google to find out what this error was, but I couldn't get a clear answer, so I asked this question.If anyone knows, please tell me how to deal with it.
git
As noted in the comments, the symbol <>
has a special meaning for the shell and needs to be handled carefully on the command input screen.
Run the command without <>
in your username as soon as possible.
$git config --global user.username USERNAME
© 2024 OneMinuteCode. All rights reserved.