Using Git with VS Code and PlatformIO

Sdílet
Vložit
  • čas přidán 2. 07. 2024
  • Note: this isn't a tutorial for Git, VS Code, or PlatformIO, but a tutorial on how to get started using them together. This video also assumes you're at least a little bit familiar with Arduino and the Arduino IDE.
    Contents:
    00:00 Introduction
    01:11 Preparing VS Code for use with Arduino
    02:28 Very basics of using PlatformIO
    07:00 Using PlatformIO with other Arduino-compatible boards
    09:00 Preparing VS Code for use with Git(Hub)
    09:32 Creating a new repo (Not necessary if downloading a preexisting one)
    09:52 Cloning a repo to VS Code
    10:35 Turning a blank repo into PIO project (Not necessary if downloading a preexisting one)
    11:10 Very basics of using Git within VS Code
    VS Code download: code.visualstudio.com/
    Please consider watching these tutorials first:
    VS Code Crash Course: • Visual Studio Code Cra...
    Git Crash Course: • Git and GitHub for Beg...
    VS Code Git status labels:
    A - Added (This is a new file that has been added to the repository)
    M - Modified (An existing file has been changed)
    D - Deleted (a file has been deleted)
    U - Untracked (The file is new or has been changed but has not been added to the repository yet)
    C - Conflict (There is a conflict in the file)
    R - Renamed (The file has been renamed)

Komentáře • 32

  • @lukes.1399
    @lukes.1399 Před 2 lety +5

    Needed to install Git from this link to make it work for me. Nothing was happening when I would click "Clone Git Project" in PlatformIO. This fixed my problem. Thanks for the awesome video!

  • @MrAtomicLlama
    @MrAtomicLlama Před 2 měsíci

    This was exactly the scope and type of explanation I was looking for. Thank you!

  • @Hienix
    @Hienix Před 2 lety +4

    Thanks for the awesome tutorial.
    For newbies like me, please also install GIT on your computer in order for this work.

  • @josef2038
    @josef2038 Před 11 měsíci

    After a ton of searching around for videos and explanations that almost hit the mark..this was what finally broke through to my brain.
    Thank you! Simple, concise, and exactly what I was looking for.

  • @dafydds
    @dafydds Před 2 lety +2

    Thanks for this video. I'm new to the whole world of ESP32/PlatformIO/VSCode/GIT.... So this whole video really helped me with the work (playing) that I'm doing. 👍

  • @sarahhall2331
    @sarahhall2331 Před 2 lety +1

    Thanks for the tutorial! Super helpful.

  • @hunternelson7627
    @hunternelson7627 Před 6 měsíci

    Perfect video for my needs, thank you very much

  • @peterlaidlaw8655
    @peterlaidlaw8655 Před 2 lety

    Thanks for doing this ... you made it logical and easy

  • @kwissiekwissie
    @kwissiekwissie Před 11 měsíci

    GREAT! not to short and not to long. Just perfect explanation... Thanks! #ThumbsUp

  • @MichelPikkaart
    @MichelPikkaart Před rokem

    Thanks I needed this GitHub start.

  • @ttac2011
    @ttac2011 Před 24 dny

    Great tutorial

  • @mikegofton1
    @mikegofton1 Před 2 lety

    Thanks, I appreciate your tutorial

  • @PBPZ22
    @PBPZ22 Před rokem

    helped a lot. Thank you 🙂

  • @klaarnou
    @klaarnou Před 2 lety

    Thank you very much for half the information.

  • @iot_enthusiast
    @iot_enthusiast Před 3 lety

    good one!

  • @wild-radio7373
    @wild-radio7373 Před rokem

    Thank you :)

  • @xcriss2898
    @xcriss2898 Před rokem

    Thanks!

  • @CraftyOldGit
    @CraftyOldGit Před rokem +1

    If an ESP32 dev board needs a button held down to start the upload, this might be fixed by putting a 2.2μF electrolytic between EN & GND pins. Worked for 2 different clone boards -- now upload starts immediately with no buttons needing to be pressed.

    • @ttac2011
      @ttac2011 Před 24 dny +1

      😢great solution thanks

  • @atilliator
    @atilliator Před 2 lety

    dude, thanks.

  • @rmaker8982
    @rmaker8982 Před 3 lety +1

    New sub here!

  • @kotro2488
    @kotro2488 Před 2 lety

    thanks bro

  • @scalesr1
    @scalesr1 Před měsícem

    Hello and thank you for an awesome and succinct tutorial - just what I needed (almost!)
    I have platformio set up with existing projects - your example kind of started with a new repo and then creating a project within that repore, committing and pushing.
    I tried creating a new repo and pointing it to my existing project and I just ended up with the repo name in my project at the same level as lib and source etc.
    Do i now 'simply' move all the src/lib etc into that new folder (repo name) or will that break platformio's reference to my existing project?

  • @AlwaysBolttheBird
    @AlwaysBolttheBird Před rokem

    The only thing I can see that’s “missing” is the serial plotter but honestly I’ve never used it and there’s probably a plug in for that

  • @chandlerbennett4287
    @chandlerbennett4287 Před 9 měsíci

    Can you include multiple projects into one git repo? For example I have ESP board 1, ESP board 2, arduino board 1 all with different code but all interact with each other. Can you combine that all in one git repo with platformio? Or is there another way of doing projects for each one?

  • @jdholbrook33
    @jdholbrook33 Před rokem

    I was hoping to find a video that shows how to take someone else's github project and bring it into PlatformIO on VS Code.
    I don't want to have write permissions their code, just bring the code into a new project on my machine and make it read / write on my machine.
    Any help with that?

  • @jacobjohnson3527
    @jacobjohnson3527 Před rokem

    Why is getting the blue bar with the checkmark at the bottom of VS code such a mystery to get? I have the PlatformIO downloaded but I can never compile. I had the blue bar once long ago but I dont remember how to get it back. I'm certain I cannot be the only one with this problem

    • @DailyCakeSlice
      @DailyCakeSlice Před rokem

      Hmm, strange, I've never run into that before. StackOverflow suggests going to the top menu bar and checking that View > Appearance > Status Bar is checked.

    • @jacobjohnson3527
      @jacobjohnson3527 Před rokem

      @@DailyCakeSlice Yes, I have tried that. Thanks for the response btw. I actually figured it out. From what I can understand, there is opening a project using the 'file' tab in the top left corner which opens the file in the sidebar with the rest of the other projects you might have open. That never gave me the option to compile though. What gave me the option to compile was opening a project through a fresh workspace page (opening through the actual workspace area itself because it gives you that option too). I did clean out every open project, restarted vs code, and reinstalled all the compiler extensions before doing that so it could be that too. I'm very new!

  • @spwim
    @spwim Před rokem

    Nice tutorial but one step is missing which is described in this video here:
    czcams.com/video/mmLuheCkDuM/video.html

  • @TreeLuvBurdpu
    @TreeLuvBurdpu Před 9 měsíci

    You didn't compare your commits before committing them, which is a standard part of committing to Git. I was hoping you'd show that, because PlatformIO completely hijacks the Git compare in VS code and just shows you the PlatformIO GUI with no difference highlights, and I was looking for a way around that problem.