Guide to work seamlessly with Github on your laptop

H Dev
2 min readDec 10, 2023

Gear up, developers, for GitHub has flipped the script on login conventions! Buckle in as the once-familiar username-password ritual takes a backseat, making way for the almighty Access Token System. While some may find this shift a tad irksome, let’s view it as a navigational challenge in the coding cosmos. Sure, it’s a departure from the norm, but change is the heartbeat of progress. Embrace the annoyance, dance with the tokens, and let’s code on, resilient as ever. GitHub’s new login? An annoyance? Nah, it’s just a quirky twist in our coding saga!

Not to worry here is a one-stop solution article that will let you get back into your seamless workflow once again.

Got a personal laptop that you trust and want to sign in your github once and forall and not enter username id, and password every time?

Here is how we go about doing it.

First and foremost, is git installed in your system?

git -v

If yes, CHECK!

Next step : Creating an access token for your personal laptop.

Log into your github account via your browser. Click on your profile picture to get your side bar navigational options like so…

Click Settings > (scroll lower) click Developer Settings > click Personal access Tokens > click Tokens (classic) > click Generate a new Token (classic).

Give it a note, something that will help you identify the device.

Select ‘no expiry’ for expiration. (totally up to you if you want to set it only for a respective amount of time)

Select all (the permissions you’d like to have/give) to the device you are going to login with. And then scroll down and click Generate Token.

Now on the screen you will see a token generated. Copy that.

Let’s move on to the next step : Adding config details.

Open your terminal, and enter the following with your respective username, email id and the access token that we just generated as the password.

git config --global user.username "h*****"
git config --global user.email "h********@gmail.com"
git config --global user.password "***token-generated***"

Now you are all set to code, collaborate and upload seamlessly. Happy Coding !

Photo by Madison Oren on Unsplash

--

--

H Dev

just another X-shaped personality, love to learn and tinker with new tech.