Connecting Git to Github in 8 minutes

Sdílet
Vložit
  • čas přidán 29. 08. 2022
  • This video attempts to distill down the git commands needed to connect a local git repository to a remote GitHub repo using a Persona Access Token.
    Subscribe: / @cwm-codingwithmike

Komentáře • 58

  • @calvaguzmanalanalexis9084
    @calvaguzmanalanalexis9084 Před 11 měsíci +9

    I was just sick of having to log in every time I wanted to git push. Thank you very much, you are an awesome master and made my life so easier.

  • @robdunsmuir732
    @robdunsmuir732 Před 8 měsíci +5

    I spent an hour trying to make it work searching, then i found this video - thank you for making this video. the personal access token was a game changer. such a concise, well-made video

  • @theBATfamiliar
    @theBATfamiliar Před rokem +3

    This was awesome, thank you so much, I'm learning Java and I use my personal pc and my work pc, so using a GitHub repo saves me a lot of time as the code is centralized and I only need to updated it and push as I change machines :)

    • @cwm-codingwithmike
      @cwm-codingwithmike  Před 11 měsíci +1

      Awesome! You are starting an exciting journey as a software developer.

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

    THIS HELPED ME SO MUCH!!! thanks

  • @gigoplastinfo4977
    @gigoplastinfo4977 Před 18 dny

    Thank you a verry Helpfull tuto ; i spent hours to login i did the "gh" command but i want to use git command ..Finaly you got me a great solution To it .

  • @Amar11115
    @Amar11115 Před rokem +1

    It was really helpful. Thanks!

  • @yvettcodes
    @yvettcodes Před 4 měsíci +1

    That was a little jam in the beginning~! Thanks for your help 💕💕

  • @user-er4fz8li6t
    @user-er4fz8li6t Před rokem +1

    fabulous explanation sir
    👌👌

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

    Cool trick, ive got a question though. when you use vim in gitbash, how did it work if you typed vi and not vim?

  • @peternydahl6150
    @peternydahl6150 Před měsícem +1

    Excelent tutorial! Thanks alot! 😃

  • @hashkeeper
    @hashkeeper Před 8 měsíci +1

    your channel is great, with stylish flare. thanks!

  • @Ksorroo
    @Ksorroo Před 13 dny

    Bro you save my life thank you so much 🇧🇷

  • @user-vo4jm5hf5i
    @user-vo4jm5hf5i Před rokem +2

    Very helpful - thank you. It would make things easier to follow if you didn't clear the screen so quickly after every command.

    • @cwm-codingwithmike
      @cwm-codingwithmike  Před rokem +1

      Thanks for the tip! I was trying to make it easier for me on the video editing later when it came to obscuring certain details, but, yeah, definitely I will see what I can do.

  • @SIDDHARTHSINGH-ch9fz
    @SIDDHARTHSINGH-ch9fz Před rokem +1

    It was helpul to start with, thanks!
    My question is- If I am having my own repository in github and I have added it to my remote origin then is there any need to have a remote upstream URL?

    • @cwm-codingwithmike
      @cwm-codingwithmike  Před rokem

      You can probably omit the first remote upstream URL as long as you set the remote upstream url with the user and userkey it should be fine!

  • @daefin9993
    @daefin9993 Před rokem +2

    when using git push origin main, i get these errors: remote: Permission to REPOSITORY.git denied to USER.
    fatal: unable to access 'REPOSITORY': The requested URL returned error: 403. censoring repo and user

    • @cwm-codingwithmike
      @cwm-codingwithmike  Před 11 měsíci +1

      It sounds like authentication errors. You might want to check when you set the "git remote set-url origin :@github.com//.git"

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

      @@cwm-codingwithmike thanks

  • @nickgame98
    @nickgame98 Před rokem +1

    Thank you very much Mike

  • @alexconklin-rn4jd
    @alexconklin-rn4jd Před 2 měsíci

    finally a useful video thank you so much

  • @lahoriyefoodsecrets
    @lahoriyefoodsecrets Před rokem +1

    Thanks Sir ..
    love from Pakistan ❤️

  • @mohamedfaresbenayed9156
    @mohamedfaresbenayed9156 Před rokem +1

    Vs code can help you connect with git without generating the acces token

  • @rhendrickramos
    @rhendrickramos Před rokem +1

    Obrigado! Me ajudou bastante!

  • @realisnotfalsefalseisnotre3250

    git push -u origin main
    fatal: protocol 'https' is not supported (What's the error), Please tell me

    • @cwm-codingwithmike
      @cwm-codingwithmike  Před 12 dny

      Sorry for the delayed response. You have a couple of options like removing the "origin" alias 'git remote remove origin' and then re-adding again: 'git remote add origin github.com/YourUsername/YourRepo.git'
      Alternatively, this might be an issue with your git installation. You could remove the git installation on your OS and reinstalling. I would try the first step and if that doesn't work then reinstall git.

  • @vault_of_good_noises
    @vault_of_good_noises Před rokem +1

    Thank you Mike

    • @cwm-codingwithmike
      @cwm-codingwithmike  Před rokem

      I am glad you enjoyed the video and found it helpful! Btw, thanks for the Sub!

    • @vault_of_good_noises
      @vault_of_good_noises Před rokem

      @@cwm-codingwithmike I was struggling for days with that issue, and you made it so easy. Thank you for sharing your knowledge

  • @vincentchimdi6812
    @vincentchimdi6812 Před 2 měsíci

    still doesn't work for me... I followed your steps, was still prompted to input username and password when it was time to push, tried both password and token key, both failed

    • @cwm-codingwithmike
      @cwm-codingwithmike  Před měsícem

      Hi Vince, I am sorry to hear you are still having problems getting this working.

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

    very helpful

  • @user-ss4bz9tx8w
    @user-ss4bz9tx8w Před 4 měsíci

    how to set multiple account with this

    • @cwm-codingwithmike
      @cwm-codingwithmike  Před 4 měsíci

      sorry for the delay in the response. I am not sure off the top of my head.

  • @yourlinuxguy
    @yourlinuxguy Před rokem +1

    Well, This was nice and all but, you could have kept the video very short.

    • @cwm-codingwithmike
      @cwm-codingwithmike  Před 11 měsíci

      yeah, this is a challenge in trying to design a video that captures all the details. The balance between too much and not enough. Thanks for the comments.

  • @AntoinSts
    @AntoinSts Před 2 měsíci

    thanks 😁

  • @Mera2002
    @Mera2002 Před rokem +1

    Nice email. X)

    • @cwm-codingwithmike
      @cwm-codingwithmike  Před rokem

      Thanks 😅

    • @danielkarath2294
      @danielkarath2294 Před rokem +1

      @@cwm-codingwithmike Hej, thank you for the video. Wanted to also reply that at 2:01 your full email is visible for a fraction of a second. Take care

    • @cwm-codingwithmike
      @cwm-codingwithmike  Před rokem

      hmmm. Thanks for catching that. I will address that.

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

    useful