How to use Git Remote Add Origin

  Рет қаралды 7,096

Cameron McKenzie

Cameron McKenzie

Күн бұрын

Пікірлер: 24
@thismoment57
@thismoment57 6 ай бұрын
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 4 ай бұрын
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 9 ай бұрын
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 9 ай бұрын
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 2 ай бұрын
very well i watched your video ...congratulations
@cameronmcnz
@cameronmcnz 2 ай бұрын
You didn't just view, but you commented as well. That's actually a big help because it wakes up the KZbin algo. Thanks for watching!
@jawad_youtube
@jawad_youtube 9 ай бұрын
Thank you, Sir. It was really informative and helpful.
@cameronmcnz
@cameronmcnz 9 ай бұрын
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!
@mruthulm6187
@mruthulm6187 9 ай бұрын
Wonderful 🎉, as a beginner we all were screwed doing this😅
@cameronmcnz
@cameronmcnz 9 ай бұрын
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 9 ай бұрын
@@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 9 ай бұрын
@@mruthulm6187 I think that's a great idea! And I know an open source project that might actually be perfect for that!
@ChrisCox-wv7oo
@ChrisCox-wv7oo 3 ай бұрын
Super helpful, thank you
@nakkiibrks
@nakkiibrks 29 күн бұрын
underrated
@cameronmcnz
@cameronmcnz 29 күн бұрын
Thanks for the vote of confidence. One day I’ll win the KZbin algo. Imma just keep plugging along.
@Beetgrape
@Beetgrape 4 ай бұрын
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.
@ddaniel.98
@ddaniel.98 8 ай бұрын
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 8 ай бұрын
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! kzbin.info/www/bejne/o2a2dJunes5mZ5Ysi=GhvzcdLpkPWNJST2
@ddaniel.98
@ddaniel.98 8 ай бұрын
Thank you so much. I just found your previous tutorial about this problem and helped me a lot. Thank you again.
@FlightPhysical
@FlightPhysical 3 ай бұрын
You can also use the SSH method (separate tab on GH) vs HTTPS to generate some push code examples with your repo
@nlegacysolo
@nlegacysolo 3 ай бұрын
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 3 ай бұрын
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 3 ай бұрын
@@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 3 ай бұрын
@@nlegacysolo I'll make that update for sure. I make these videos to try and help people avoid those frustrating experiences. KZbin 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 KZbin's perspective.
Git Tutorial For Dummies
19:25
Nick White
Рет қаралды 1,2 МЛН
Learn Git and GitLab Tutorial For Beginners | Full Course [2024]
1:44:09
Cameron McKenzie
Рет қаралды 12 М.
Yay, My Dad Is a Vending Machine! 🛍️😆 #funny #prank #comedy
00:17
Всё пошло не по плану 😮
00:36
Miracle
Рет қаралды 4,2 МЛН
НАШЛА ДЕНЬГИ🙀@VERONIKAborsch
00:38
МишАня
Рет қаралды 3,1 МЛН
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 82 МЛН
Next.js 15 Breakdown (Everything You Need To Know)
18:10
Web Dev Simplified
Рет қаралды 24 М.
How to Undo a Pushed Git Commit - Reset & Revert a Git Commit After Push
12:25
Git and GitHub Crash Course For Beginners | Complete Tutorial [2024]
1:53:19
Git Essentials
30:03
Learn Linux TV
Рет қаралды 26 М.
Git Set Upstream Example | Learn Branch Management in Git
16:03
Cameron McKenzie
Рет қаралды 2,6 М.
Yay, My Dad Is a Vending Machine! 🛍️😆 #funny #prank #comedy
00:17