I have this message on Git:
git config --global user.email “email@example.com”
git config --global user.name “Your Name”
to set your account’s default identity.
Omit --global to set the identity only in this repository.
fatal: no email was given and auto-detection is disabled
git config --get-all user.name
I used Homebrew to install git on my mac and I have an account on github I don’t know how to config name and email.
Any suggestions please.
What happens when you try
git config --global user.email firstname.lastname@example.org
in the terminal? (replace email@example.com with your actual email address)
If that works then also try
git config --global user.name "Your Name"
but replace Your Name with your actual name (you still need the quotes).
That should set your name and email in git.
Thats nonsense. You don’t need a GitHub account to use git.
make sure you are in your home directory to make config, not your local directory