How to Commit and Push to Github from VSCode (2024 Update)

Поділитися
Вставка
  • Опубліковано 5 жов 2024
  • In this video, I'll show you how you can commit and push code to github from vscode. Visual Studio Code (vscode) is a very popular IDE to write code, and it can help you to commit and push code to github without leaving the editor.
    You'll need to have git installed in your system in order to push code to github from vscode. If you don't have git already installed in your system, check the video below:
    Install Git: • How to Install Git 2.4...
    ☕Buy me a coffee: www.buymeacoff...
    🌐Connect with me:
    TikTok: tiktok.com/@thecodecity
    Twitter: / thecodecity
    Instagram: / thecodecity
    Website: thecodecity.com
    Steps to commit and push to Github from VSCode:
    1. Initialize local repository
    2. Add the files to be tracked by git: git add .
    3. Commit the changes: git commit -m "your message here"
    4. Add Origin: git remote add origin git-repo-link.git
    5. Push to github: git push -u origin master
    By the end of this video, you'll have commited code in your visual studio code, and have pushed code to github from within vscode.
    If you have any problems, let me know in the comments below.

КОМЕНТАРІ • 52

  • @TheCodeCity
    @TheCodeCity  2 місяці тому

    ✌If this video helped you, consider buying me a coffee so I can continue making free helpful videos: www.buymeacoffee.com/thecodecity
    Thank you for watching! ✌

  • @whisperpriest4630
    @whisperpriest4630 Місяць тому

    You have explained the problem I encountered. I have successfully pushed and host my assignment. I appreciate this video a lot.

  • @nuci5233
    @nuci5233 22 дні тому +1

    really straightforward and useful thank you 👍

  • @MrMackster01
    @MrMackster01 3 місяці тому +9

    Good tutorial- it might help if you ‘clear’ in the terminal as the code you’re typing is hard to see at the bottom on the screen! Otherwise great video!

  • @jnb3451
    @jnb3451 7 днів тому +1

    Legend, thank you my indian friend. - Your American friend

  • @bartwinston1582
    @bartwinston1582 2 місяці тому +1

    git commit -am"" is cool because it bypasses a need to do git add because it tracks changed files. Nice video!

  • @TimHuza
    @TimHuza 3 місяці тому +2

    Thank You so much that was really helpful!

    • @TheCodeCity
      @TheCodeCity  3 місяці тому

      Glad it helped! thanks for watching :)

  • @g_bluana6965
    @g_bluana6965 Місяць тому

    This was so helpful, thank you!

  • @metaru_cd
    @metaru_cd 4 місяці тому +1

    Thank you very much, this tutorial helped me a lot

  • @harshsoni7873
    @harshsoni7873 Місяць тому

    Great video, Helped me a lot.

  • @fredaotto8622
    @fredaotto8622 3 місяці тому

    Thank you very much, this was helpful.

  • @heshamahmad4101
    @heshamahmad4101 3 місяці тому

    finally someone explained to the point and it really worked for me...I just want to know how i will push later again if i created multiple files and all at a time.... although i tried : git add file_name
    git commit -am ""
    git push origin master : and it added a single file but don't know if need to push multiple at a time

    • @TheCodeCity
      @TheCodeCity  2 місяці тому

      To add multiple files: git add .

  • @aldohaspo1108
    @aldohaspo1108 5 днів тому

    it's work love u sir

  • @grapehool
    @grapehool 19 днів тому

    2 questions. What is -am . And what is the difference between git add and git commit?

  • @QuantApplicantMattKulis
    @QuantApplicantMattKulis 2 місяці тому

    excellent explanation thanks

  • @joeljohnson6573
    @joeljohnson6573 Місяць тому

    Appreciate you man

  • @dimasalanta
    @dimasalanta 4 місяці тому

    thanks for this tutorial!

  • @CherryMakesGameplays
    @CherryMakesGameplays Місяць тому

    Short precise everything nice

  • @ender-t7u
    @ender-t7u 2 місяці тому

    good job. very helpful

    • @TheCodeCity
      @TheCodeCity  Місяць тому

      Thank you for watching, glad it helped. Have you checked this on our new channel? ua-cam.com/video/_fGZd1luSN8/v-deo.htmlsi=G9iVRwfmvK5wnTn_

  • @deepika4101
    @deepika4101 5 годин тому

    Sir after entering the cmd git add . I got an error like 'frontend/' does not have a commit check out ..
    What to do for this
    Please help

  • @arteeeeeeemis
    @arteeeeeeemis 18 днів тому

    Thanks mate

  • @Bhavin_Ahir1
    @Bhavin_Ahir1 24 дні тому

    Thank you bro your are so great bro superb

    • @TheCodeCity
      @TheCodeCity  23 дні тому

      Thank you for watching! Glad it helped :)

  • @SayedNowshad-ri7rc
    @SayedNowshad-ri7rc Місяць тому

    Thanks 👍

  • @alexali650
    @alexali650 11 днів тому

    God bless you🎉🎉😊😊

  • @jayakumar2927
    @jayakumar2927 Місяць тому

    How to use without command inside vscode

  • @christo368
    @christo368 Місяць тому

    do a video for Mac users

  • @norienmohammed5321
    @norienmohammed5321 Місяць тому

    THANK U

  • @swapnajitroul157
    @swapnajitroul157 26 днів тому

    Useful

    • @TheCodeCity
      @TheCodeCity  23 дні тому

      Thank you for watching! Glad it helped :)

  • @SyedMoinuddinycs
    @SyedMoinuddinycs 3 місяці тому

    thanks bro

  • @madtorture3188
    @madtorture3188 3 місяці тому

    thanks!!!

  • @andresoriah
    @andresoriah Місяць тому

    ty bro

    • @TheCodeCity
      @TheCodeCity  23 дні тому

      Thank you for watching! Glad it helped :)

  • @MihreteabDesalegn
    @MihreteabDesalegn 29 днів тому

    you are hero

    • @TheCodeCity
      @TheCodeCity  23 дні тому

      Thank you for watching! Glad it helped :)

  • @zeljkoferber9684
    @zeljkoferber9684 Місяць тому +2

    awefull , 0 point. better don't make nothing than this.

  • @aoyama3546
    @aoyama3546 Місяць тому

    hard to understand indian accent

    • @TheCodeCity
      @TheCodeCity  Місяць тому

      O.K

    • @aoyama3546
      @aoyama3546 Місяць тому

      @@TheCodeCity hhh nvm Just kidding

    • @aoyama3546
      @aoyama3546 Місяць тому

      @@TheCodeCity Distinctive accent

    • @pratt3528
      @pratt3528 Місяць тому

      it's a nepali accent that is very clear, wellspoken and easy to understand, get your dumbass outta here.

  • @00nobody001
    @00nobody001 3 місяці тому

    Thanks!

  • @thushankalana4940
    @thushankalana4940 3 місяці тому

    Thank you❤

    • @TheCodeCity
      @TheCodeCity  3 місяці тому

      Thank you for watching! Glad it helped! :)