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! 🙏🙏🙏
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!
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!
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.
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!
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.
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
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?🥺😢😩
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.
@@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. 🙃
@@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.
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! 🙏🙏🙏
I have searched for this all my life. Thanks for explaining this complex idea in a straightforward and structured way. Regards
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.
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!
very well i watched your video ...congratulations
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!
Thank you, Sir. It was really informative and helpful.
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!
Thank you for this tutorial
Super helpful, thank you
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.
Wonderful 🎉, as a beginner we all were screwed doing this😅
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!
@@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👍
@@mruthulm6187 I think that's a great idea! And I know an open source project that might actually be perfect for that!
underrated
Thanks for the vote of confidence. One day I’ll win the TH-cam algo. Imma just keep plugging along.
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.
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
Thank you so much. I just found your previous tutorial about this problem and helped me a lot.
Thank you again.
You can also use the SSH method (separate tab on GH) vs HTTPS to generate some push code examples with your repo
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?🥺😢😩
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.
@@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. 🙃
@@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.