How to Push Code to Github from Visual Studio Code (2023)

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.พ. 2025
  • In this video, I'll show you how to push code to Github from Visual Studio Code. Using VSCode to push and pull code to Github makes it very convenient to track code changes.
    Install GIT: • How to Install Git on ...
    ☕Buy me a coffee: www.buymeacoff...
    🌐Connect with me:
    TikTok: tiktok.com/@thecodecity
    Twitter: / thecodecity
    Instagram: / thecodecity
    Website: thecodecity.com
    After this video, you'll see how you can push code to github repository from visual studio code.
    Video Topics:
    Git project init in vscode
    Git operations from visual studio code
    Add files to git in vscode
    push code to github from visual studio code
    If you have problems pushing code to github, let me know in the comments below.
    #github #vscode #visualstudiocode #git

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

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

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

  • @sravani7273
    @sravani7273 ปีที่แล้ว +16

    ur super sir i am searching for these content for 2 days no one is clearly explaining but u made to understand simple and it is working out without any issues.thank u sir

  • @RoshRider
    @RoshRider ปีที่แล้ว +11

    this is the best and most simple video for using to push my code, best helped me a lot

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

    Thank you so much, very clear. Have a great day!

  • @akshayak5466
    @akshayak5466 11 หลายเดือนก่อน +2

    in simple words ur awesome sir ..... I searched a lot for this content finally I got it sir because of u

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

      My pleasure, glad it helped!

  • @BUSAYOAJAYI-z7y
    @BUSAYOAJAYI-z7y 2 หลายเดือนก่อน

    Many thanks, You just solve my problem in less than 10 mins✌👍👊😍 You are the best on the TH-cam

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

    Thank you very much for this tutorial, crystal clear explanation. Found the solution after searching for 2 days!

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

      Thank you for watching! Glad it helped :)

  • @gavate-patlacha-ram68
    @gavate-patlacha-ram68 8 หลายเดือนก่อน

    00:03 Creating a Github account via browser
    01:32 Create a GitHub repository and push code
    02:31 Setting up a new project in Visual Studio Code for GitHub push
    03:37 Initializing a Git repository and adding files for push
    04:38 Commit and push changes to GitHub from Visual Studio Code
    05:42 Push code to GitHub from Visual Studio Code
    06:46 Pushed code to remote repository from VS Code
    07:53 Push code to GitHub from Visual Studio Code and create branches

  • @PrasannaKumar-ky7cd
    @PrasannaKumar-ky7cd 10 วันที่ผ่านมา

    Very helpful, Thank you

  • @HemantKumar-bn9nz
    @HemantKumar-bn9nz ปีที่แล้ว +1

    thanks sir this so simple way to push code to github.

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

      Glad it helped!

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

    Great video man! Easy to understand and follow through

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

    Useful Video, thanks for sharing

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

      My pleasure, glad it helped!

  • @Damian.419
    @Damian.419 3 หลายเดือนก่อน

    Very helpful video. Thank you very much, have a good day

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

      Thank you for watching! glad it helped :)

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

    Great simple and straight forward video

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

      Thank you for watching! Glad it helped :)

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

    It really working thank you so much

  • @fabiocorreagomes
    @fabiocorreagomes ปีที่แล้ว +1

    thanks man! Greetings from Brazil :)

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

      You're welcome!

  • @jmlzbsit-1359
    @jmlzbsit-1359 5 หลายเดือนก่อน

    Thank you, this is easy to follow

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

    thank you so so much😁😁

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

      Thank you for watching! Glad it helped 🙂

  • @АдилетКаныбеков-ь4ж
    @АдилетКаныбеков-ь4ж 4 หลายเดือนก่อน

    thank you man !

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

    great job !!! excellent explanation.

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

      Thank you for watching, glad it helped. Have you checked this on our new channel? th-cam.com/video/_fGZd1luSN8/w-d-xo.htmlsi=G9iVRwfmvK5wnTn_

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

    This helped alot !!! omg.

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

    it helped me a lot

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

      My pleasure, glad it helped!

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

    superb video...very good explanation...Thanks for the help

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

    Thanks for sharing, I found it helpful

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

    Thank You Sir It Helped A Lot 🤝

  • @boss-hirad
    @boss-hirad 3 หลายเดือนก่อน

    thanks for your help

  • @sahilsaiyad-d3j
    @sahilsaiyad-d3j 7 หลายเดือนก่อน

    very well bro , liked this video and it's very helpfull to understand .

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

      Thank you for watching, glad it helped 🙂

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

    video is helpful, published my first project, how to add regular updates to git

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

    THANK YOU!

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

    straight to the pojnt, thanks

  • @eicoz
    @eicoz ปีที่แล้ว

    nice and clean tutorial 👍

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

    You the best sir 😊

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

      My pleasure, glad it helped!

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

    👌you made very easy to understand

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

      Glad to hear that!

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

    simple and clear. thank you so much.

  • @bbd01
    @bbd01 ปีที่แล้ว

    thank you. this is the best video i found👍

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

      You're welcome!

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

    Very helpful thankyou

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

      My pleasure, glad it helped!

  • @Ahmad-Karim
    @Ahmad-Karim 7 หลายเดือนก่อน

    thanks alot, great video

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

      Thank you for watching! Glad it helped! :)

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

    thanks, it works. but it could not push to master branch, instead i pushed to main branch

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

    thanks a lot it helped me a lot

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

      My pleasure, glad it helped!

  • @mysteri-fx
    @mysteri-fx 8 หลายเดือนก่อน

    Best explanation thx alot

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

    Three words: What A Legend! 👌
    Would this be the exact same process for private repos?
    Thanks

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

    superb

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

      Thank you for watching! Glad it helped! :)

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

    excelent!!!

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

      You're welcome! Glad it helped

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

    01:49= Create Repository in Github, 02:40= Open project from Folder,

  • @dng7470
    @dng7470 ปีที่แล้ว

    Thank you. This was very helpful..

    • @TheCodeCity
      @TheCodeCity  ปีที่แล้ว

      You're welcome! glad it helped

  • @NehaSawant-ee9pz
    @NehaSawant-ee9pz 8 หลายเดือนก่อน

    Thank You So Much

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

    thank you!

  • @lyvy...
    @lyvy... 9 หลายเดือนก่อน

    Thank you so much sir🤧

  • @Spidey-2006
    @Spidey-2006 5 หลายเดือนก่อน

    Thanks bro

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

      Thank you for watching! Glad it helped :)

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

    thank you so much

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

      You're welcome!

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

    hello sir good day can i ask what is the difference of master and origin when pushing?

  • @orjiifeanyi1061
    @orjiifeanyi1061 ปีที่แล้ว

    SUPER THANKS

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

    Hello sir..I wants to know that after creating repo and push my project on it..I wants to again pull project on vs code and changes made then again wants to push on same repo on github what I hv to do?

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

    Thank u sir

  • @AkhileshMaurya-nm8jr
    @AkhileshMaurya-nm8jr 3 หลายเดือนก่อน

    hello sir projects is amazing. but mai vs code se github upload nahi kar pa raha hun. aap ke sare instruction mai follow kiya jo app ne github ke readme ke ander likha tha.fir bhi upload mai nahi kar pa raha hun.can you make one video vscode se github par upload kaise karate hai.

  • @azm00
    @azm00 ปีที่แล้ว

    Hello, this is simple and nice video that you make.
    I have some questions. If I have folder inside the repo, how can I put my project code into that specific folder?
    Thank you.

    • @TheCodeCity
      @TheCodeCity  ปีที่แล้ว

      In your local computer, put code inside that specific folder and push

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

    Do you have to use the Terminal to push from VS Code to GitHub? Can't one just use the Source Control tab and do the same thing, perhaps a little bit easier / user-friendly?

  • @patiencesamuel4007
    @patiencesamuel4007 ปีที่แล้ว

    Hello! your video is quite helpful. Thank you. Please how do I push changes from Visual studio to an existing repository? To clarify, I'm hosting my portfolio from github, it's been difficult effecting changes without deleting the whole repository and starting afresh.

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

      You need to push to the branch from which github pages is showing the portfolio

  • @gyu-u1k
    @gyu-u1k 3 หลายเดือนก่อน

    when i typed git commit -am "Circle" it outputted author identity unknown. any solution?

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

    What if I have multiple files in a folder that I want to push

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

    🙃thanks

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

    Note: It's push to main now, instead of master

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

      If you use main, It'll push to main branch, if you use master, it'll still work but create a master branch in remote repo and push to master

  • @UniqueAB247
    @UniqueAB247 22 วันที่ผ่านมา

    Why are you pushing to master since GitHub has reverted to using main?

  • @mercury-pc5qc
    @mercury-pc5qc 3 หลายเดือนก่อน

    thanks

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

      Thank you for watching! glad it helped :)

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

    i tried git remote add origin, but it says that remote origin already exists.

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

    😍

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

    so i have to upload my file into a different person's public repository. is this the exact same way or is there difference in any step?

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

      It's the same

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

    SSL certificate problem: self-signed certificate in certificate chain getting this error

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

    My authorize git eco system is not coming up

  • @mirazh8216
    @mirazh8216 ปีที่แล้ว

    thanks

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

    when i enter "git push origin master" it doesnt automatically open another apps like yours do. what do i do?

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

      Have you install git in your computer?

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

      @@TheCodeCity yes i have

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

      I have the same problem

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

    How to i add folders then push altogether

  • @gymaddiction07
    @gymaddiction07 ปีที่แล้ว

    Authorize git -ecosystem unable dikha raha hai click nahi ho sakta kya karu

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

    It says unable to access certificate file

  • @ShawnWere-pd2xh
    @ShawnWere-pd2xh 7 หลายเดือนก่อน

    beautiful bastard genius

  • @muhammadharsanto2024
    @muhammadharsanto2024 ปีที่แล้ว

    thanks. How to import like reverse the thing you do? so that I can work in another device or co-working

    • @TheCodeCity
      @TheCodeCity  ปีที่แล้ว

      Check this: th-cam.com/video/WBE8XTTyH6g/w-d-xo.html

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

    goat

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

      Thank you for watching, glad it helped :)

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

    Is Git download mandatory??

  • @actionmoviesandmemefilmact2223
    @actionmoviesandmemefilmact2223 ปีที่แล้ว

    Hello pls I need ask u some question

    • @TheCodeCity
      @TheCodeCity  ปีที่แล้ว +1

      What's the question?

    • @actionmoviesandmemefilmact2223
      @actionmoviesandmemefilmact2223 ปีที่แล้ว

      @@TheCodeCity I'm trying to push from vs to github but am facing challenges, can you guide me pls

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

    please remove your brand logo from video, it hides the information etc. you already get your brand sub button on video.

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

      On top left?

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

      @@TheCodeCity yah mate. was good but logo is an issue

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

    lalar min mnih bolku bn chi buruu hiisn bn

  • @-4zi894
    @-4zi894 ปีที่แล้ว

    pydaras

  • @fialku-i4m
    @fialku-i4m ปีที่แล้ว

    Its so stupid, the title is how to push code... BUT the video first two minutes is how to sign up for github. Two minutes waste, plus one minutes writing this.

    • @TheCodeCity
      @TheCodeCity  ปีที่แล้ว +1

      You're stupid.

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

      just time skip 🤨 Instead of wasting your time writing this comment, you could have used the time to do a timeskip.

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

    Thank you ❤

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

      Thank you for watching! Glad it helped! :)

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

    Thank you!