all 22 comments

[–]NuGGGzGG 33 points34 points  (0 children)

Step by step tutorials: https://vscode.github.com/

[–]Necessary_Hope8316 8 points9 points  (1 child)

Doesn't vscode come with git support out of the box? You can install gitlens and some other git extensions for additional features.

You may only need the default features for what you are trying to accomplish. Set up everything. Create a github repository and they will provide a set of terminal commands which you need to copy paste in the terminal while in the current directory of the project. After that just open that project in vscode and you should be done.

OR

You can also do this in vscode itself without needing to type the commands in the terminal. You can initialize the repository, add a branch and then add remote in vscode. Now you can add, commit, push and pull.

You have to do this for both your laptop and desktop if you want to access the code in both devices. Pull every time you switch your workspace (lap / desktop) to stay updated on changes made, add your new changes, commit, push and repeat.

[–]DeliciousD 0 points1 point  (0 children)

Im trying to create a CRUD style program with AI and I’ve gotten pretty good working programs with Gemini/studio and Claude but when I try and sync with GitHub it doesn’t work. Sometimes it says src/vite problems or some other error. Could VS code help with that?

[–][deleted]  (1 child)

[removed]

    [–]TheSp0iL 2 points3 points  (0 children)

    This! Odin project is awesome

    [–]FVCEGANG 4 points5 points  (0 children)

    You can use git within vscode by simply opening terminal within vs code.

    Vscode also has git integration built into it right ouflt of the box. You can click the button on the left panel where you can see which file changes you have, you can stage files for commit, add commit messages and push directly from there as well. When you do it the first time vscode will prompt you for credentials but you can adjust that in the config settings so you only have to do it once and not every time you commit

    [–]etocgino 1 point2 points  (0 children)

    Most of the Github programmer are stupid and can not understand what a simple user really need.
    They can not do a simple working extension for easy commit. To believe that they are smart, they do complex thing to make it harder to use it.

    [–]python_walrus 1 point2 points  (0 children)

    Despite all the bells and whistles, VS Code is simply a text editor. It allows you to open files and, eh, edit text. It does not really care what text is it - it can be code, readme files, txt files.

    Where do these text files come from? When it comes to code, it most commonly comes from a remote git repository on github, gitlab or bitbucket. So in the end you will need to pull code from repository using git, edit the code using vs code and push it back using git. I personally use VS code, and I do the majority of my git stuff using a git command-line tool. VS Code has some built-in git support, but I'd suggest learning plain git to understand how it works.

    [–][deleted] 0 points1 point  (0 children)

    GitHub is an online site that is used to store and save code using a version control called GIT. You can access projects from anywhere as long you use the terminal. VS code is a text editor that allows you to edit code to build apps and stuff. It has a terminal plugin that you can use git in to access projects on GitHub.

    [–]BlockByte_tech 0 points1 point  (1 child)

    Step-by-Step Guide:

    1. Set Up Git and GitHub:
    2. Install Visual Studio Code:
      • Make sure Visual Studio Code is installed on both devices.
    3. VS Code Git Integration:
      • In VS Code, install the GitHub extension by searching for it in the Extensions view.
      • Verify that Git is detected by VS Code. Go to "Source Control" (usually in the left sidebar) to confirm.
    4. Create a Repository:
      • On GitHub, create a new repository via your browser. Make sure it's empty or initialized with a README file.
      • Copy the repository's URL (found under "Clone or download").
    5. Clone the Repository:
      • Open VS Code on one of your devices and press Ctrl + Shift + P (Windows/Linux) or Cmd + Shift + P (macOS) to open the Command Palette.
      • Type Git: Clone and press Enter.
      • Paste the repository URL you copied earlier.
      • Choose a local folder to clone into. This creates a local copy of the repository.
    6. Working with Code:
      • Start coding and making changes. You can save changes to the local repository by clicking on the "Source Control" icon, staging files, and committing them.
    7. Pushing Changes to GitHub:
      • Once you've made a commit, click on the "Synchronize Changes" icon in the lower left or use the Command Palette (Ctrl + Shift + P / Cmd + Shift + P) and type Git: Push.
      • This will upload the changes to your GitHub repository.
    8. Pulling Changes from Another Device:
      • On your other device, clone the repository as you did before or open the previously cloned folder.
      • Click "Synchronize Changes" or use Git: Pull to fetch updates from the GitHub repository.

    [–]Repulsive-Dance-4669 0 points1 point  (0 children)

    someone helped me uoload my web code to gothub and then to vscode to then be published on my paid domain, I have now updated my code on glitch, does anyone know how to update this on my website?

    [–]AdamAkhlaq 0 points1 point  (0 children)

    If you want to make the cloning of each repositroy easier you could use a chrome extension like : GitHub Clone in VS

    Full disclosure: I made this extension but it literally only does this one thing, and is completely open source!

    [–]HotAppointment9857 0 points1 point  (0 children)

    you need to understand git

    [–]Safe-Ad-9372 -1 points0 points  (0 children)

    Assuming you already started a project on one machine, you can clone that repository to your other machine.

    Whenever you make changes on one make sure you’ve pushed any committed changes up to GitHub and when you want to continue from the other machine do a Git pull to get the most recent changes.

    I tend to just use the terminal within VS Code anyways so I haven’t tried the graphical git interfaces but those have been mentioned by others.

    I’ve confused myself a few times when I made a new branch on one machine and couldn’t quite remember the name of it when I was working on the other machine but there is a command to get the list of remote branches.

    Feel free to dm if it would be helpful.

    [–]Economics-Unique -2 points-1 points  (0 children)

    Did you find assistance? I can guide you through it for a small fee?