- Open Visual Studio Code terminal (Ctrl + `)
Write the Git clone command. For example,
git clone https://github.com/angular/angular-phonecat.gitOpen the folder you have just cloned (menu File → Open Folder)

- Open Visual Studio Code terminal (Ctrl + `)
Write the Git clone command. For example,
git clone https://github.com/angular/angular-phonecat.gitOpen the folder you have just cloned (menu File → Open Folder)

Another option is to use the built-in Command Palette, which will walk you right through cloning a Git repository to a new directory.
From Using Version Control in VS Code:
You can clone a Git repository with the Git: Clone command in the Command Palette (Windows/Linux: Ctrl + Shift + P, Mac: Command + Shift + P). You will be asked for the URL of the remote repository and the parent directory under which to put the local repository.
At the bottom of Visual Studio Code you'll get status updates to the cloning. Once that's complete an information message will display near the top, allowing you to open the folder that was created.
Note that Visual Studio Code uses your machine's Git installation, and requires 2.0.0 or higher.
Using github and VS Code?
Using Github with VS Code
How to link my VScode to Github?
How to open my repository from Github on Visual Studio Code?
Do I need to install Git separately before connecting VS Code to GitHub?
Does VS Code have built-in GitHub support?
How do I clone a GitHub repository directly inside VS Code?
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
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 !
I tried for like 30 minutes to push my project i just created from VScode to Github and i couldn't get it right for the life of me, i ended up just going to "add file" and dragging the folder there.
I got the following erros:
"fatal: The current branch main has no upstream branch."
"fatal: No configured push destination."
"fatal: repository not found".
I do have a SSH key on my github, how can i link it to my vscode to fix these problems?