Next.js Discord

Discord Forum

Error message while pushing commit

Answered
bobonlan posted this in #help-forum
Open in Discord
Avatar
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.
Image
Answered by dumbboy
This happens because, you are not logged in to your remote github in your local cli
View full answer

10 Replies

Avatar
This happens because, you are not logged in to your remote github in your local cli
Answer
Avatar
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
Avatar
will the name and email have to match whatever i did on my desktop?
Avatar
IG No, but it would be nice
Avatar
i didnt remember doing it on there but i guess i must have
oh okay
Avatar
when you will try to push(to remote github) after these commands, it will ask you to login If I'm not wrong
Avatar
it worked, thank you