How to use Git Remote Add Origin

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

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

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

    Cameron ... 1) so well-explained, 2)superbly presented! You saved this semi-newbie's skin! I also learned precious extra which will serve me well in the future. I'd love to master git and Github better going forward ... you're a prime candidate for helping us achieve. Huge thank you! 🙏🙏🙏

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

    I have searched for this all my life. Thanks for explaining this complex idea in a straightforward and structured way. Regards

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

    God bless you, and thank you so much. For over a year now your videos have been very helpful to me and i cant thank you enough.

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

      Thanks so much for the kind words!
      Many of my older Git videos were recorded with cheap mics and no video, so I'm trying to update a bunch of them and make them more current.
      Thanks for watching and thanks for the support!

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

    very well i watched your video ...congratulations

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

      You didn't just view, but you commented as well. That's actually a big help because it wakes up the TH-cam algo.
      Thanks for watching!

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

    Thank you, Sir. It was really informative and helpful.

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

      Glad I helped! Lots of people run into problems with Git's remote add origin command. Hopefully this clears things up and makes life a bit easier.
      Git and GitHub an GitLab etc get a lot easier once you're connected to your Git repo!

  • @Enveonline
    @Enveonline 18 วันที่ผ่านมา

    Thank you for this tutorial

  • @ChrisCox-wv7oo
    @ChrisCox-wv7oo 4 หลายเดือนก่อน

    Super helpful, thank you

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

    Hi Cameron, you see I forked a public github repo and deleted all the history. now, it is fresh and i wanna know will I be able to sync it with the original repo if they updates the repo? if so, please make a tutorial.

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

    Wonderful 🎉, as a beginner we all were screwed doing this😅

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

      Did you stick around for the cheat method at the 19:20 mark? Honestly makes things super simple if your repo isn't huge. Save you from doing a forced push or git rebase after the git remote add origin command.
      Thanks for the comment and thanks for watching!

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

      @@cameronmcnz how to deal with open source projects and the git operations we must know for it might be a great content. I hope you will do that👍

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

      @@mruthulm6187 I think that's a great idea! And I know an open source project that might actually be perfect for that!

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

    underrated

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

      Thanks for the vote of confidence. One day I’ll win the TH-cam algo. Imma just keep plugging along.

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

    Hello!
    I have a little problem: when I type "git push -u origin master" I get "Support for password authentication was removed on August 13, 2021".
    What is happening?
    Thank you.

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

      You are trying to authenticate using your account password, which you're not allowed to do anymore. Instead, you need to generate an access token and then use the token as your password.
      I have a quick video on it here. The UI has changed a little bit but not much. Hope this helps!
      th-cam.com/video/m5SChqEi314/w-d-xo.htmlsi=GhvzcdLpkPWNJST2

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

      Thank you so much. I just found your previous tutorial about this problem and helped me a lot.
      Thank you again.

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

      You can also use the SSH method (separate tab on GH) vs HTTPS to generate some push code examples with your repo

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

    Very useful. Might I make a suggestion? I watched your 1:53min vid created in Jan2024 BEFORE watching this one and it took me 2hrs to figure *this* out on my own _no help from search engine cuz that’s what us codeaholics do _debug til we fig it out. So I only finished half the tutorial before needing a long break after. My fault cuz I had 2 ready2commit projects sitting on my hd, instead of creating no content files like in your vid. My sugg - update your vid or add info in description warning ppl. All the failed attempts to commit led me to the solution. I deleted ‘main’ branch after figuring out how to add ‘master’. How was I to know I coulda saved 2hrs by watching this?🥺😢😩

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

      I'll make that update. What's the short note I should add in? To remind people to check the name of the branch, and make sure there's not a main/master mismatch?
      I'll update the description of both videos.

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

      @@cameronmcnz The problem only occurred because when creating the Github repository, I created a MIT license too because that’s what my proj uses. In your vid, there was no error because your repo was created empty. So I renamed using -M main which resulted in 2 branches named main. I reverted back to master (locally), committing it and then deleted main. So, the short way to put in descr (in case someone did not create empty repo) is to just say something like “you might run into a glitch 😏 at 00:43:00. if you get an error when tryin to commit new repository, watch this video….” That’s short. If at all possible in your video, if it’s not too much work to edit vid, all you gotta do is tell them to make sure they leave their Github repo empty when creating. Anyone who followed your vid exactly would not have run into that problem so wouldn’t even know there could be a problem. 🙃

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

      @@nlegacysolo I'll make that update for sure. I make these videos to try and help people avoid those frustrating experiences. TH-cam doesn't let you edit a video once it's update, so that's limiting, but I'll make a note in the description for sure. I'll go look if their editing tools for uploaded videos have changed.
      Basically, they don't want someone to upload a video about one thing, get people to share it, and then change the content into something vile or vulgar. So as a creator it's frustrating when you upload something and can't make changes, but it's sorta understandable from TH-cam's perspective.