Managing Multiple GitHub Accounts in VS Code

From Git Confusion to Clarity: Working with Multiple GitHub Accounts in VS Code Today I tackled something that confuses many beginners (including me 😅): 👉 How to manage multiple GitHub accounts (personal + organization) in VS Code. Here’s what I learned: 🔹 A normal folder ≠ Git repository ➡️ You must run git init to start tracking your project 🔹 Git has 2 levels of identity ✔ Global → default (personal account) ✔ Local (per repo) → can override (organization account) 🔹 Your GitHub identity is based on email, not username ➡️ Always set the correct email for the repo: git config user.name "Your Name" git config user.email "your-org-email@example.com" 🔹 To connect your project to GitHub: git remote add origin https://lnkd.in/gpw74Tm9 🔹 Push your code: git add . git commit -m "initial commit" git push -u origin main 💡 Biggest takeaway: You don’t need to delete or change your personal setup — just configure things per project. This small clarity saves a LOT of confusion while working across teams and organizations. #Git #GitHub #VSCode #Developers #TechJourney

To view or add a comment, sign in

Explore content categories