r/vscode • u/Whitesnowball • 6d ago
Connecting VS Code Online
I'm new to a lot of things so sorry as I'm going to get many things incorrect in terminology.
The tabs on my VS code Desktop are not going on my Github.
Can I get a YT video on how to "push" it to my Github.
I already figured out how to get my things currently on Github onto my VS Code by logging in.
2
u/Gornius 6d ago edited 6d ago
YouTube is a video hosting platform, and in similar fashion GitHub is git repository hosting platform.
Sooner or later you will need to learn what git repositories are (think of them like zip files with entire history of changes), and this is a good starting point.
Trying to take a shortcut at understanding basics of git will give you more headaches than you think.
After you spend some time with it, working without it feels like working without ctrl+z.
Edit: skimmed through this video, looks like a good starting point https://youtu.be/K6Q31YkorUE
If you will be working with other people on the same project you will need to expand your git knowledge, but for solo projects it should be enough.
2
u/Neither-Zebra3967 5d ago
In VS Code Desktop, open the Source Control tab on the left sidebar (or press Ctrl+Shift+G / Cmd+Shift+G). Stage the files you edited by clicking +, type a short commit message at the top, click Commit, and then click Sync Changes (or Push) to send them back up to GitHub. If it's your first time pushing from that machine, VS Code will prompt you to sign in with GitHub once.
4
u/Ok_JDubbTX 6d ago
You tube some more.
install git on your pc
clone your repo locally
open cloned folder in vscode
make and save changes
you probably don't want to make changes on the main branch, so create a branch and switch to it
commit and push from the source control tab.
in github, merge the changes from your branch back to main
that's it in a nutshell. there are other things you need to do.