Using Git & GitHub in VSCode: Stage, Commit, and Push

Sdílet
Vložit
  • čas přidán 28. 07. 2024
  • Hi everyone, in this video, we'll cover the basics of using Git and GitHub with VSCode.
    ◾◾◾◾◾ Related Content ◾◾◾◾◾
    Branches, Pull Requests, and Merging in VS Code:
    • Using Git & GitHub in ...
    ◾◾◾◾◾ Timestamps ◾◾◾◾◾
    00:00 | What we'll cover?
    00:23 | Why use Git?
    00:44 | Git vs. GitHub: What's the difference?
    01:07 | Check Git Version and Path
    01:55 | Setup a Git Repository (Initialize)
    03:48 | Tracking and Discarding Changes (Add)
    04:46 | Saving Changes (Commit)
    06:07 | Publish to GitHub
    08:57 | Make Changes to Remote GitHub File (Commit & Push)
    10:26 | Sync Changes from GitHub to Local File (Pull)
    11:45 | Staging, i.e., Choosing Changes to Commit (Stage)
    ◾◾◾◾◾ 🌎 Let's Connect! ◾◾◾◾◾
    🐦 Twitter (X): 🔗 / @max_on_tech
    📂 GitHub: 🔗 github.com/maxontech
    🔊 Discord: 🔗 / discord
    🏹 ProductHunt: 🔗 www.producthunt.com/@m4x
    ✅ Blog: 🔗 maxontech.io/courses
    ◾◾◾◾◾ Hashtags ◾◾◾◾◾
    #Vscode #Stage #Commit #Push #Git #Github

Komentáře • 31

  • @NSA.
    @NSA. Před 3 dny +1

    by some miracle i got it working

  • @keenanwekesa1723
    @keenanwekesa1723 Před 29 dny +2

    As a self-taught dev, this is simple, straightforward, and really easy to understand.

  • @cheemsburbger5622
    @cheemsburbger5622 Před 5 měsíci +1

    thank youu! this really helped me understand git, its short and direct to the point unlike other vids

  • @tryfon8672
    @tryfon8672 Před 4 měsíci +3

    I watched so many videos on that, as a baeginner i can say that yours was by far the easiest to understand. Thanks a lot!

    • @MaxOnTech
      @MaxOnTech  Před 4 měsíci

      hey, that's awesome! keep going 💪:)

  • @deldridg
    @deldridg Před 3 měsíci

    Wonderful tutorial Max and thank you. I've been a dev for many years but am only now moving to VS Code and Git, primarily working with Django. You have saved me a lot of time and effort and for that I am very grateful. You have a wonderfully calm way of teaching and your efforts are much appreciated. Cheers from a new Aussie sub in Sydney - Dave

    • @MaxOnTech
      @MaxOnTech  Před 3 měsíci

      hey, thanks for the kind words! all the best dave 🫡

  • @sagarr7940
    @sagarr7940 Před 3 měsíci

    Thanks for your clear way of explaining things.🥰

    • @MaxOnTech
      @MaxOnTech  Před 3 měsíci

      Hey sagarr! that's awesome will be making more soon!

  • @zhyakoxalid6892
    @zhyakoxalid6892 Před 6 měsíci +1

    I don't know if you'll ever read this, but thank you very much Max. Loved the video, how you presented the video, your voice, your slow and and friendly approach taking in the total newbies like me into consideration.
    For another video, maybe make sure to stop and clearly define some important common words you use in the video and are vital to the software/ Vscode here. For example, you Max might understand what Push, pull, staging means, but if you could further go and search, explain them with analogies and maybe even put the m in the description, that would be great. I think you very well explained "commit" meaning "saving permanently".
    By watching it the first time, I became so much preoccupied with pausing the video and doing what you do that I could not finish the video, so I thought maybe this is a total waste of time and "JUST" watch the video please:
    Watch the video in its entirety one time with minimal to no pause to get the gist
    Then watch the video back and try to replicate what Max/ CZcams is doing
    More to read ...
    I am genuinely curious to know about how other people watch videos. Some people close to me might say oh you overcomplicate everything, oh don't be a perfectionist, but I feel like it is within me to not be able to do things inefficiently. Like why would a 100 people or many more find this video really helpful and even be able to replicate what Max is doing, but I take much more trial and error, it might be that I did not deal with any of these softwares, even MS office until age of 19.
    I will however just accept it, be grateful to god that I am this diligent and willing to learn and work. Life is all about detecting and solving a problem
    Thank you Max

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

      Haha, that's awesome! Love these comments as they encourage me to level up and continue!
      Here's a short answer to the words you mentioned:
      Push: Is similar to sending your changes to a shared space. When you "push" your changes, you send your changes to that shared space (e.g., GitHub) where others can see it.
      Pull: Allows you to get the latest changes made by others from the shared space (e.g. GitHub). When you "pull," you're grabbing the most recent updates from the shared space to your own workspace (i.e. your VSCode editor).
      Staging: Picture a space on your local device for things you want to share in the future. Staging is like preparing your changes before pushing them to the shared space. You put only the specific changes you want to share in this staging area, ensuring you don't accidentally share something you didn't intend to.

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

    This video was really helpful not going lying, but I had to go watch another on how to config git to continue the video, thanks

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

      hey thanks for the feedback :)

  • @SabbirImon
    @SabbirImon Před 7 měsíci +1

    Thanks brother, it really helps to understand basic knowledge ❤❤❤❤

    • @MaxOnTech
      @MaxOnTech  Před 7 měsíci

      welcome! very glad that it helps

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

    Good stuff 👍👍

  • @joyebot7371
    @joyebot7371 Před 8 měsíci

    Thank you 🎉🎉

  • @Robin-qf9is
    @Robin-qf9is Před 7 měsíci

    thanks a lot :))!

    • @MaxOnTech
      @MaxOnTech  Před 7 měsíci

      You're welcome! Glad it helped!

  • @djfago6240
    @djfago6240 Před 3 měsíci

    welly explained. i have subscribed sir.

  • @haniehsolatpour8945
    @haniehsolatpour8945 Před 3 měsíci

    👏👏

  • @user-uq2ec4ok7d
    @user-uq2ec4ok7d Před 11 měsíci +3

    It's Visual Studio Code not Virtual Studio ..........other than that the video is superb!!

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

      true :) got them confused haha. But glad the video helped!

  • @whateveritwasitis
    @whateveritwasitis Před 4 měsíci

    How do you make a video about Git and Vscode and not mention or cover setting up global config? I was familiar with it from Linux but forgot about it and had to set it up here, but how do you NOT even mention it? You also take git bash, etc for granted as well. If someone needs to watch this video in the first place, I can assure you these things are worth mentioning.

  • @einekleineente1
    @einekleineente1 Před 2 měsíci +2

    1:24 for mac users:
    which git
    /usr/local/bin/git