1. Open Visual Studio Code terminal (Ctrl + `)
  2. Write the Git clone command. For example,

    git clone https://github.com/angular/angular-phonecat.git
    
  3. Open the folder you have just cloned (menu File → Open Folder)

Answer from Shahdat on Stack Overflow
🌐
Visual Studio Code
code.visualstudio.com › docs › sourcecontrol › github
Work with GitHub in VS Code
October 7, 2026 - Choose an integration based on what you want to do: The GitHub Pull Requests and Issues and GitHub Repositories extensions are separate.
🌐
GitHub
docs.github.com › en › codespaces › developing-in-a-codespace › using-github-codespaces-in-visual-studio-code
Using GitHub Codespaces in Visual Studio Code - GitHub Docs
You can develop in your codespace directly in Visual Studio Code by connecting the GitHub Codespaces extension with your GitHub account.
Discussions

Using github and VS Code?
Step by step tutorials: https://vscode.github.com/ More on reddit.com
🌐 r/webdev
23
16
May 8, 2024
github - How do I connect to my existing Git repository using Visual Studio Code? - Stack Overflow
I've been using Visual Studio code for a long time, since v0.9.1. I now have run into the need to use GitHub and an online Git repository. I have the online Git repository set up and have been pus... More on stackoverflow.com
🌐 stackoverflow.com
How to connect my GitHub Enterprise Account with Visual Studio Code - Stack Overflow
If you have the GitHub Actions ... above under relevant extension, it could have been renamed to "GHE.com & GitHub Enterprise Server Authentication"). For the changes to take effect, restar VSCode, next time you're asked to login you should be redirected to your enterprise ... More on stackoverflow.com
🌐 stackoverflow.com
Using Github with VS Code
Are you pushing your commits? More on reddit.com
🌐 r/learnprogramming
7
1
March 21, 2024
🌐
It's FOSS
itsfoss.com › vs-code-github
How to Connect GitHub to VS Code [Step by Step]
February 10, 2025 - One way would be to go to the Source Control view in VS Code. If Git is not installed, it will ask you to download it. Another thing is that you should have the Git username and email configured. VS Code comes builtin with GitHub integration.
🌐
Reddit
reddit.com › r/webdev › using github and vs code?
r/webdev on Reddit: Using github and VS Code?
May 8, 2024 -

Hey everyone!

I know i’m going to sound pretty stupid for this but i’ve looked all over youtube and all of the videos are from years ago or don’t really explain it well in my opinion. Can someone here explain to me in the most basic terms how to use github and vs code together so that i’m able to access my code from both my laptop and desktop

update: thank you so much everyone! i was able to figure it out

🌐
Straygoat
straygoat.co.uk › freelance technical writer › blog › set up git and github to work with visual studio code
Set up Git and GitHub to work with Visual Studio Code - Straygoat
July 27, 2025 - Learning how to set up Git and GitHub to work with Visual Studio Code. Covers the installation and setup steps, including how to create and clone a repo.
🌐
DEV Community
dev.to › kougou › how-to-connect-vscode-to-github-1nip
How to Connect VSCode to GitHub - DEV Community
April 8, 2025 - Select “Sign in to GitHub” from the menu. A browser window will open with the GitHub authentication page. Log in and authorize access. Once authentication is successful, VSCode will be connected to your GitHub account!
Find elsewhere
🌐
TechRepublic
techrepublic.com › home › developer
How to add a GitHub repository to VS Code
February 9, 2024 - Click Allow, and your default browser will open. If you’ve not already signed in to your GitHub account, do so. Upon successful authentication, you’ll be redirected back to VS Code, where you’ll see the extension is now connected to your GitHub account and is ready to use (Figure D).
🌐
Visual Studio Code
code.visualstudio.com › docs › sourcecontrol › quickstart
Quickstart: use source control in VS Code
November 3, 2021 - Open the Command Palette (⇧⌘P (Windows, Linux Ctrl+Shift+P)) and run Publish to GitHub.
🌐
GitHub
github.blog › home › developer skills › github for beginners: getting started with git and github in vs code
GitHub for Beginners: Getting started with Git and GitHub in VS Code - The GitHub Blog
May 25, 2026 - So what is Git? Git is the program for managing that source code, and it can be used in multiple different ways (e.g., from the command line, through VS Code, etc.). Visual Studio Code, often abbreviated as VS Code, leverages Git to enable you to manage your code in GitHub.
🌐
Microsoft
visualstudio.microsoft.com › vs › github
Visual Studio and GitHub - Microsoft
July 15, 2026 - Authenticate your GitHub.com or GitHub enterprise account to create a repository, and push your first commits to GitHub, all through Visual Studio.
🌐
TMS Outsource
tms-outsource.com › home › how to connect vscode to github easily
How to Connect VSCode to GitHub Easily
September 3, 2026 - This workflow is central to any software development process using Git. Confirm everything works by checking these three things: GitHub repository page: Visit github.com/username/repo-name and verify your files appear · Commit history: Source Control panel > Three dots menu > View History shows your commits · Status bar: Bottom-left of VSCode shows branch name and sync status (cloud icon) All three check out? Your VSCode-GitHub connection is working.
🌐
DEV Community
dev.to › surajondev › connect-your-github-to-vs-code-1n71
Connect Your Github To VS Code - DEV Community
April 21, 2025 - Git: Download and Install Git and login to your GitHub account. ... After downloading when you open VS Code, we need to download the extension to connect VS Code and GitHub.
🌐
GitProtect.io
gitprotect.io › strona główna › github with visual studio code guide
GitHub with Visual Studio Code Guide - Blog | GitProtect.io
January 19, 2022 - Furthermore, VS Code is actually a desktop application and GitHub is accessed through the web. That permits users to code using any of their devices connected to the internet.
🌐
GitHub
vscode.github.com
GitHub and VS Code | Bring your favorite tools to all the places you code
You can see the Git commit history of a specific file in the Timeline view. Choosing a commit opens up the diff view of the changes from that commit. Easily copy the commit Id or commit message to help you go to important points in your code's
🌐
JC Chouinard
jcchouinard.com › accueil › how to install git and github in vscode (with example)
Install Git and Github in VSCode (Visual Studio Code)
April 4, 2025 - The first step to being able to use Github with VSCode is to set-up Git on your computer and enable in it VSCode. This post will show you easy steps to Learn git with vscode by JC Chouinard
🌐
Adam the Automator
adamtheautomator.com › visual-studio-code-github-setup
Visual Studio Code GitHub Setup: A Beginner's Guide
December 18, 2024 - To get your Visual Studio Code GitHub setup working, you’ll need to work with Git. Visual Studio Code comes installed with a built-in extension for source control using Git. There are many configurations available with the Git extension.
🌐
Reddit
reddit.com › r/learnprogramming › using github with vs code
r/learnprogramming on Reddit: Using Github with VS Code
March 21, 2024 -

I'm sorry if these are silly questions but I've been pulling my hair out and trying to find solutions online with no luck.

So let me just preface by saying I don't know a lot about Git and Github. I've read up on them so theoretically I think I get what they are. Git hub is a version control file repository website/server(?) where you can store your code and changes you make to it. You can also use it to collaborate.

Git is version control system which comes with a command line language (?)and can be used with many version control systems including Github. So now, I have an account with Github and I do my coding in VS Code. I have a project I was working on and every time I changed something significant I would go to source control and commit changes to the repository on my git hub. I am able to access all these versions when using vs code, however when I log in to my git hub account using a web browser. I have all the repositories I have made bu t they don't contain anything, they are empty.

I don't really get how to have these files that are on my workstation to be automatically linked with Git. My goal is to have some kind of portfolio to showcase some of the projects I've been working on. But I seem to be missing some basic or fundamental knowledge for me to use Git Hub in this way.

Please help me

Edit: Made my description for Git clearer(?) lol...idek if I did that

Edit2: Solved! Thanks !