Error setting user name for Git

Asked 2 years ago, Updated 2 years ago, 269 views

What do you want to solve

Screenshot 2021-10-10 15.35.15.png

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.

Problems/errors encountered

Screenshot 2021-10-10 15.35.32.png

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.

What I tried myself

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

2022-09-30 22:00

1 Answers

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


2022-09-30 22:00

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.