Github config username and password

1. For global configuraion – it will set username and email to globally for all
folder


$ git configglobal user.name “Kahnu Charan Swain”


$ git configglobal user.email djkanha044@gmail.com



For a specific folder (git directory)

$ git configlocal user.name “Kahnu Charan Swain”


$ git configlocal user.email djkanha044@gmail.com


else you can directly set user and email to cofig file

go to > .git > config and add the below code to that last of the file

[user]
name = kahnu
email = kahnuc.swain@nettantra.net

Leave a Comment

Your email address will not be published. Required fields are marked *