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

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 เม.ย. 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.buymeacoffee.com/thecodecity
    🌐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.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 18

  • @TheCodeCity
    @TheCodeCity  9 วันที่ผ่านมา

    ✌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! ✌

  • @bartwinston1582
    @bartwinston1582 4 วันที่ผ่านมา

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

  • @fredaotto8622
    @fredaotto8622 หลายเดือนก่อน

    Thank you very much, this was helpful.

  • @metaru_cd
    @metaru_cd 2 หลายเดือนก่อน

    Thank you very much, this tutorial helped me a lot

  • @ender-t7u
    @ender-t7u 3 วันที่ผ่านมา

    good job. very helpful

  • @MrMackster01
    @MrMackster01 หลายเดือนก่อน +4

    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!

  • @dimasalanta
    @dimasalanta 2 หลายเดือนก่อน

    thanks for this tutorial!

  • @QuantApplicantMattKulis
    @QuantApplicantMattKulis 27 วันที่ผ่านมา

    excellent explanation thanks

  • @TimHuza
    @TimHuza หลายเดือนก่อน +1

    Thank You so much that was really helpful!

    • @TheCodeCity
      @TheCodeCity  หลายเดือนก่อน

      Glad it helped! thanks for watching :)

  • @00nobody001
    @00nobody001 หลายเดือนก่อน

    Thanks!

  • @SyedMoinuddinycs
    @SyedMoinuddinycs หลายเดือนก่อน

    thanks bro

  • @madtorture3188
    @madtorture3188 หลายเดือนก่อน

    thanks!!!

  • @heshamahmad4101
    @heshamahmad4101 หลายเดือนก่อน

    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  29 วันที่ผ่านมา

      To add multiple files: git add .

  • @thushankalana4940
    @thushankalana4940 หลายเดือนก่อน

    Thank you❤

    • @TheCodeCity
      @TheCodeCity  หลายเดือนก่อน

      Thank you for watching! Glad it helped! :)

  • @aoyama3546
    @aoyama3546 11 ชั่วโมงที่ผ่านมา

    hard to understand indian accent