Whether or not it was a mess up, this seems to be over my head, and further reading would only get me deeper in trouble. Hence am posting here:
What happened (verbose b/c I am not sure which is relevant):
I was doing "git push" when I was prompted to fix the author name and user email. I copied the command and did it. The command opened an editor (vi), but I didn't know how to close the editor's window. So I closed the Terminal window (w/o editing).
At some point, I was prompted to switch to
bash. I copied the prompt and did it.
Problem is: the prompt became
myName@MacBook-Pro % (used to be
My-MacBook-Pro $). To remove the
% and set the prompt back to default, I read some and followed a tip and did
export PS1="\W \$" which resulted in my prompt becoming
\W \$. So I did
export PS1="$", thinking at least I could get rid of the clutter. But whatever I did, it didn't stick. When I open a new window, the same
myName@MacBook-Pro % reappeared.
Set aside what git wants me to do regarding username, how do I get my prompt to get back to default, with username (or MacBook-Pro) and current working directory--most importantly, ending in $ (and not %, which is driving me bananas)?