Connecting Git to Github in 8 minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ธ.ค. 2024

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

  • @calvaguzmanalanalexis9084
    @calvaguzmanalanalexis9084 ปีที่แล้ว +14

    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 ปีที่แล้ว +8

    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

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

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

    • @cwm-codingwithmike
      @cwm-codingwithmike  8 หลายเดือนก่อน

      Awesome! I am glad this was helpful!

  • @theBATfamiliar
    @theBATfamiliar ปีที่แล้ว +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  ปีที่แล้ว +1

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

  • @daefin9993
    @daefin9993 ปีที่แล้ว +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  ปีที่แล้ว +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 ปีที่แล้ว

      @@cwm-codingwithmike thanks

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

    Finally i can get it to work! Thanks a bunch for the tutorial 😁

    • @cwm-codingwithmike
      @cwm-codingwithmike  2 หลายเดือนก่อน

      Wonderful! I am glad this video was helpful!

  • @RobertShackelford-f5b
    @RobertShackelford-f5b ปีที่แล้ว +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  ปีที่แล้ว +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.

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

    Wouldn't this leak your username and access token to your local network? I'm not certain how git/https works so I may be wrong, but I assumed your initial url was visible to other machines on your lan even though it is http over ssl.

    • @cwm-codingwithmike
      @cwm-codingwithmike  หลายเดือนก่อน

      Great questions!
      It should be okay because the connection uses HTTPS, which encrypts the data, making it safe from others on the local network. However, you raise a good point-embedding tokens directly in the URL can expose them in other ways, like in command history or config files. To mitigate this, you can clear specific commands from your history or disable history temporarily when running sensitive commands ( history -d or clear history completely with history -c). Again, I don't for see any real issues with this.
      Another security alternative is using Git Credential Manager or SSH keys instead of putting the token directly in the URL. Thanks for the feedback-it’s a great idea for a future video!

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

    Brilliant! Excellent tutorial!

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

    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 .

  • @SIDDHARTHSINGH-ch9fz
    @SIDDHARTHSINGH-ch9fz ปีที่แล้ว +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  ปีที่แล้ว

      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!

  • @manik-r7d
    @manik-r7d ปีที่แล้ว +1

    fabulous explanation sir
    👌👌

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

    Excelent tutorial! Thanks alot! 😃

  • @mikegaravani7309
    @mikegaravani7309 ปีที่แล้ว +2

    THIS HELPED ME SO MUCH!!! thanks

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

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

    • @cwm-codingwithmike
      @cwm-codingwithmike  4 หลายเดือนก่อน

      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.

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

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

  • @alexconklin-rn4jd
    @alexconklin-rn4jd 6 หลายเดือนก่อน

    finally a useful video thank you so much

    • @cwm-codingwithmike
      @cwm-codingwithmike  6 หลายเดือนก่อน

      Thank you for the kinds words! I am glad it helped!

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

    great video! Thanks!

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

    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  6 หลายเดือนก่อน

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

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

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

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

    your channel is great, with stylish flare. thanks!

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

    It was really helpful. Thanks!

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

    Thanks, sir. God bless you!

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

    Bro you save my life thank you so much 🇧🇷

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

    Thanks Sir ..
    love from Pakistan ❤️

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

    Thank you very much friend :)

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

    Thank you very much Mike

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

    is anyone else still confused? github is so confusing to me and it's stressing me out by the fact that i HAVE to use this

    • @cwm-codingwithmike
      @cwm-codingwithmike  3 หลายเดือนก่อน

      Hi, I am sorry to hear you are having difficulty with the process and github. It is a very powerful tool for storing all kinds of digital documents.

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

      Git (github is a remote git host) has stressed and confused generations of programmers. It is a rite of initiation. Now if you are ever talking to another coder at a social gathering, just mention something you hate about git, or some terrible experience you had and you instantly have a new friend.

    • @cwm-codingwithmike
      @cwm-codingwithmike  หลายเดือนก่อน

      @@Vsor Ha Ha! Like Cherry Picking! Conceptually that one through me for a loop for a very long time....

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

      @@cwm-codingwithmike "my favorite rebasing strategy is to delete the entire directory, throw out my computer, and get a job on a farm."

    • @cwm-codingwithmike
      @cwm-codingwithmike  หลายเดือนก่อน

      @@Vsor HA! Love it!

  • @ameenameen-i5p
    @ameenameen-i5p 9 หลายเดือนก่อน

    how to set multiple account with this

    • @cwm-codingwithmike
      @cwm-codingwithmike  8 หลายเดือนก่อน

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

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

    Thank you Mike

    • @cwm-codingwithmike
      @cwm-codingwithmike  ปีที่แล้ว

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

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

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

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

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

    • @cwm-codingwithmike
      @cwm-codingwithmike  ปีที่แล้ว

      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.

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

    very helpful

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

    Obrigado! Me ajudou bastante!

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

    thanks 😁

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

    Nice email. X)

    • @cwm-codingwithmike
      @cwm-codingwithmike  ปีที่แล้ว

      Thanks 😅

    • @danielkarath2294
      @danielkarath2294 ปีที่แล้ว +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  ปีที่แล้ว

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

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

    useful