Your first time with git and github step by step Learn To use Git on the command line “login to github from terminal”.
Set up Git
git config --global user.name "your_username"
Also Read: how to upload project file to github using command line?
gitlab login command line
$ git config credential.helper store $ git push https://github.com/owner/repo.git Username for 'https://github.com':Password for 'https://[email protected]': //Example git config username and password Username for 'https://github.com': Password for 'https://[email protected]':
git set username and password for remote
git config --global user.email "[email protected]" //Example git config --global user.email "[email protected]"