Error message while pushing commit
Answered
bobonlan posted this in #help-forum
bobonlanOP
Getting this error when trying to push my first commit from my laptop. It confused me because I don't recall having to do this on my desktop.
Answered by dumbboy
This happens because, you are not logged in to your remote github in your local cli
10 Replies
This happens because, you are not logged in to your remote github in your local cli
Answer
You can Configure email and name. and while pushing it will ask you for creds and it will store it in your system for future transactions.
U can use this commands:
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
Don't forgot to change name and email
bobonlanOP
will the name and email have to match whatever i did on my desktop?
IG No, but it would be nice
bobonlanOP
i didnt remember doing it on there but i guess i must have
oh okay
when you will try to push(to remote github) after these commands, it will ask you to login If I'm not wrong
bobonlanOP
it worked, thank you