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

Поділитися
Вставка
  • Опубліковано 24 лис 2024

КОМЕНТАРІ • 70

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

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

    • @HyperLinguist-AI
      @HyperLinguist-AI 28 днів тому

      unless you smash your computer and then incinerate it, you can't get rid of github data once installed. It had been months since I last used it and I couldn't remember my account (could not find it on my webmail!!) so I created a new one. Then it would always tell me when trying to push that it was the wrong username and pwd. I uninstalled github, purged it, autoremoved it, incinerated it, deleted it the folder manually, it would still keep the older username, which I found when doing the connect test to github. The only way to remove your github data from your system is to do a military grade overwriting of all sectors of memory six times and then wipe out deep using assembly language. It may still keep the data, so, to be safe, just buy another hard drive.

  • @MahmoudSadeghi-g9w
    @MahmoudSadeghi-g9w Місяць тому +1

    Was the best after almost an hour searching for a video on this subject. Just, not a big issue, but the code you were typing in the terminal was hardly visible sometimes. Thanks a lot.

  • @user-jc5pk9cs9m
    @user-jc5pk9cs9m Місяць тому +3

    it's better than 70% of other git deployment videos thanks a lot ❤

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

      Thank you for watching! glad it helped :)

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

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

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

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

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

      FALSE!!!! U LIAR!!!!

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

      if the file is not tracked by git, it need to git add

  • @jnb3451
    @jnb3451 Місяць тому +1

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

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

    really straightforward and useful thank you 👍

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

    Could you make more videos like this? They've been incredibly helpful! By the way, is there a way to automate updates in Git so that any changes I make in VS Code are automatically synced?

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

    Thank You so much that was really helpful!

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

      Glad it helped! thanks for watching :)

  • @MrMackster01
    @MrMackster01 5 місяців тому +11

    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!

  • @DanishTroll87
    @DanishTroll87 5 днів тому +1

    Even chatgpt wasn't this good. Thanks a lot. However, just next time don't forget to mention git config --global user.email and git config --global user.name, because I couldn't commit without setting up these 2.

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

    Thank you very much, this tutorial helped me a lot

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

    This was so helpful, thank you!

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

    Great video, Helped me a lot.

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

    Thank you very much, this was helpful.

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

    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  4 місяці тому

      To add multiple files: git add .

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

    Thanks for helping !

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

    Hey i was wondering if there is any extension to do this kind of this like in visual studio for c# devlopment

  • @simpletatted23
    @simpletatted23 16 днів тому

    shout out to you bro salute!!

    • @TheCodeCity
      @TheCodeCity  16 днів тому

      Thank you for watching! Glad it helped 🙂

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

    Good english & Expla... Tq

    • @TheCodeCity
      @TheCodeCity  16 днів тому

      Thank you for watching! Glad it helped 🙂

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

    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

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

    excellent explanation thanks

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

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

    • @ahsanhussain9916
      @ahsanhussain9916 10 днів тому

      git add brings the file to staging area means (ready to or waiting for a commit) , git commit the name itself save the changes to the file , git is used for versioning learn about it and you will understand that its purpose is more than just pushing code to github

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

    Thank you bro your are so great bro superb

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

      Thank you for watching! Glad it helped :)

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

    Appreciate you man

  • @dimasalanta
    @dimasalanta 6 місяців тому

    thanks for this tutorial!

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

    good job. very helpful

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

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

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

    Short precise everything nice

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

    it's work love u sir

  • @noirslament0
    @noirslament0 5 місяців тому

    Thanks!

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

    God bless you🎉🎉😊😊

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

    How to use without command inside vscode

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

    THANK U

  • @thushankalana4940
    @thushankalana4940 5 місяців тому

    Thank you❤

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

      Thank you for watching! Glad it helped! :)

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

    Useful

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

      Thank you for watching! Glad it helped :)

  • @SyedMoinuddinycs
    @SyedMoinuddinycs 5 місяців тому

    thanks bro

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

    ty bro

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

      Thank you for watching! Glad it helped :)

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

    do a video for Mac users

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

    No password required?

  • @madtorture3188
    @madtorture3188 5 місяців тому

    thanks!!!

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

    you are hero

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

      Thank you for watching! Glad it helped :)

  • @ravitejakakarala7858
    @ravitejakakarala7858 27 днів тому

    use main instead of master.

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

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

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

    hard to understand indian accent

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

      O.K

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

      @@TheCodeCity hhh nvm Just kidding

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

      @@TheCodeCity Distinctive accent

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

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

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

    No password required?

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

    Thanks mate

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

    Thanks 👍