Managing multiple github account on your machine

All of us have and might go through this problem at some point in our careers where we’ve got multiple github account for our personal, work and freelancing projects.

Before a couple of months ago I would used two variations of VS code in my machine. One was the Visual Studio Code and other was VScodium .
But that was a work around until I found out that you can add your username and password/ Personal Auth Token when you clone the repo. After that you can start working normally and git will take care of permissions.
We need the Personal Auth Token because github has discountinued using our traditional passwords. And PATs can expire, they can also be given selective permissions.

So this is how it works, when you’re cloning a repo just put your username:PAT
example:

git clone @github.com/{username/org}/{repo”>https://{username}:{PAT}@github.com/{username/org}/{repo}

Yes, it was as simple as that.

You can find me at https://100lvlmaster.in

--

--

--

onw to 10x developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Microsoft Teams Direct Routing: Should you use Media Bypass?

Explore AI and ML using Azure Notebooks

How to use Post Processing in Unity

ECOS Auctions

Politics & Social Media

6 Tips For A Software Development Success Philosophy

Using SQLite with Rust and Actix Web (with Tests)

Photo by Markus Winkler on Unsplash.

Upgent [BETA]

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Navin Kodag

Navin Kodag

onw to 10x developer

More from Medium

Proxy in System design

Getting Started with ELK Stack

Database Installation in Linux

How to serve multiple web applications on a single port and different subdomains using Nginx and…