Это видео недоступно.
Сожалеем об этом.
Git and GitHub Crash Course For Beginners | Complete Tutorial [2024]
HTML-код
- Опубликовано: 15 авг 2024
- Git isn't hard to learn, and when you combine Git and GitHub together, you've just made your life a whole lot easier.
I put this Git and GitHub tutorial together to provide a full journey through what every developer needs to know about Git and GitHub, from basic commit history operations, to advanced Git rebase and squash commands. It's great for advanced users, but Git and GitHub beginners will love it as well.
Most Git commands are demonstrated both on the command line and in the online GitHub tool. Furthermore, various GitHub features like pull requests and forking are demonstrated as well demonstrating many of the core differences between Git and GitHub.
If you need a crash course in Git and GitHub, and you want to learn about GitHub and Git in a fun and friendly environment, this Git and GitHub tutorial is for you!
0:00 Git and GitHub Course Overview
3:05 Difference between Git and GitHub
9:34 What is a Git repository
11:04 Create a Git GitHub repo
13:00 Create files on GitHub
14:12 GitHub commit history
15:19 GitHub URL
17:46 Clone a GitHub repo
19:25 Git status command
19:29 Git add command
21:25 Git config name and email
23:12 Git commit on command line
23:45 Git log a dog
26:15 Git push origin
29:00 Git pull
32:30 Git fetch
34:54 Git commit all
35:42 Git reflog
36:33 Git cheat sheet
37:30 Git & GitHub commit history
44:00 Git reset hard
45:49 Commit, add, revert, reset
49:50 Git reset a commit
53:35 Revert a commit
55:15 Git cherry-pick
57:01 Push project to GitHub
57:41 Git remote add
58:08 Git push upstream
1:00:11 Git branching
1:07:37 Git init
1:08:20 Create a Git branch
1:09:30 Switch branches
1:12:01 Git merge branches
1:12:20 Git merge vs rebase
1:14:00 GitHub merge into Master
1:18:15 GitHub pull requests
1:19:44 Merge GitHub pull requests
1:26:10 Git rebase command
1:30:45 Use Git and GitHub together
1:41:12 Git merge conflicts
1:45:25 Resolve GitHub merge conflicts
1:46:45 Squash Git commits
1:48:43 Git stash
1:50:23 Git stash pop & apply
1:50:57 Git and GitHub Review
1:52:45 Scrum Master Certification Guide
1:53:00 Learn Git and GitHub resources
This is how teaching particularly teaching tech-related content should be done.
Thanks for the kind words! I really saw this Git and GitHub tutorial as a journey through the various commands, starting from the basics and working to the advance. I'm glad you enjoyed it!
I'm 23 minutes from the end of this video, about to start on the "grand slam" portion, and I just wanted to pause to say that this video has been phenomenal. I've learned so much and have been able to work ahead of you for a decent portion in the last 3rd of this tutorial. This is the first video I've seen of yours and just based on this one video, you are great at teaching.
Thank you!
There are so many great videos out there on GitHub already, so I take that as high praise! Fact is, Git makes things pretty easy. The tool gets all the credit. All I did was click some buttons and talk too much.
Thanks again for watching and commenting!
Honestly, I loved how you talked about everything. The reason I loved it was because you went into even the little details that really helped me piece together everything and also helped me understand the underlying concepts. Even though instead of an hour it was almost 2 hours, those little details, diagrams, and also the fact that you showed it in action in the terminal and Git Bash really helped piece together everything so that I would not get stuck at all when I go off to do it on my own while creating my projects. It was the first time I actually saw someone explain everything so perfectly. I'm sure it took you hours to make it, and I'm sure you checked over the video many times and practiced many times as well. But I want to say that I really appreciate the effort that you put in and that it has helped me a lot. I am sure that just like how it has helped me, it has also helped many others, so thank you for all the effort you put in.
This is the best comment I've ever got!
It was honestly a lot of fun making this, and yeah, there were a lot of takes and retakes to try and make it fairly seamless.
I also spent a lot of time on the editing phase to put graphics in to make it more visually appealing.
Still lots of things I'd change as I'm learning more about editing and lighting etc.
By the way, I have a GitHub Desktop video that's 30 minutes long. It was supposed to be just a 'how to install' but I got carried away. It was actually all done in a single take, which I personally find amusing.
Thanks so much for the kind comment. It really lifted my spirits in a big way!
@@cameronmcnz Haha you're going to be getting many more comments like this in the future that I can 100% guarantee after seeing your way of explaining everything and the amount of effort you are willing to put into every video that you make.
I am going to watch your GitHub Desktop video now as well. I will be looking forward to your future videos. It's nice to see that you are taking less takes to make your videos because I know that it's very hard to quickly make seamless videos that have graphics.
Your style of teaching is so unique...so inviting, not intimidating at all, so easy to follow and understand. Thank you!!
Thanks for the kind words. Git and GitHub are indeed intimidating topics. I'm so glad I made these important DevOps tools more approachable for you.
Thanks for watching!
totally! great teacher!!
@@HappyHealthyWealthyYou Thanks for the encouragement! Honestly, it's Git and GitHub that makes it fun. I'm just a conduit to the Git and GitHub goodness!
I had some issues that came up with git rebase, and i was excited for the troubleshooting opportunity. Resolved.
Thanks for your calm and confident demeanor.🎉
This is the best tutorial of Git & GitHub for beginger. After I watched this, I can understand what others saying. Thanks
Exactly what I'd expect a fellow Torontonian to say!
Quite frankly though, this is not great for a true 'beginner.' There are lots of other really simple, 'beginner tutorials' that outrank me on Google.
My videos tend to move quickly and I assume a much higher level of technical competency that other, similar tutorials.
If you found this tutorial helpful, it's an indication of the fact that you're probably more advanced and more knowledgeable than the typical person searching for a Git and GitHub tutorial.
Thanks for viewing, and I am glad I helped! If you did understand what I covered here, I grant you expert status. This tutorial covers just about every Git porcelain command there is.
Go Leafs Go!
Thanks for this tutorial. I absolutely enjoyed a reboot after being gone for a year.
Cameron is my type of guy. After long search of the right tutor for me, i found cameron. Thanks Man.
You'll change your tune when you get my tutoring bill. 💰💰💰
I really enjoyed putting this git and github tutorial together, and it's exhilarating seeing it get more than the typical 200 views my videos normally get.
Thanks again for watching and for the kind words!
@@cameronmcnz haha.
By far the best explanation of how to use Git. I have listened to so many tutorials and gotten so confused but now I can actually understand what is happening. Thanks Cameron, you are a great teacher.
I'll see if I can replicate it, but I've got to admit, that's super weird.
Cameron, it doesn't get much better than your teaching style. Thank you for taking the time to create this tutorial and post it. You have a new subscriber.
Thanks so much for the kind words! I've always been known for short, 2-minute videos that just solve a specific problem. This was my first foray into long-form content. I really enjoyed doing this, and it makes me feel great knowing it's resonated with a few people.
The style of teaching is very clear, helpful, and inviting! Thank you very much. 謝謝。
Thank you for the friendly words! I really enjoyed putting this video together!
I wish this video had more views and recognition. Cameron really gets into how it makes sense when connecting with github AND how development works!
Thanks so much for the kind words!
I really enjoyed putting this together, and I really wanted this to feel like a continuous journey, not just a bunch of mini-tutorials. I too would love to see more hits, but my channel has never managed to win the RUclips algo war. Here's hoping one day it will!
The way you explain things excites me
Always happy to encourage others who are digging into tough technical topics!
One of the best and straightforward and helpful git tutorial ever for beginners, I can say I watched at least 3-4 videos but could not grasp the idea behind the concepts. This video cleared it all and I mean wish you best for your rest of life.
Also can you make similar introduction tutorial for docker with dockerization on web app project.
Thanks for the kind words!
To be quite honest, I felt bad calling this a 'beginners' tutorial because I think it moves *very* quickly and covers very advanced topics.
If you were able to keep up and still understand the content, that's more a reflection of you as an adept learner than anything else.
Have fun working with Git and GitHub!
@@Tekttskskwdi Actually, I have a very quick tutorial on dockerizing an app on NGinx that I think is one of my most popular, but it is more of a 'quick how-to' for people that know Docker than a tutorial. If you want a great, quick tutorial on Docker, this 8 minute video from @Scrumtuous is one of the best!
ruclips.net/video/rLrISSCXiMo/видео.htmlsi=7KJwksN_QpiQ61ut
As a visual learner, I liked your approach to teaching, nice!
Your teaching is superb. The best tutorial on youtube. i love how you used both the terminal and Gui. it makes it more understandable. You are the best
Thanks so much for the kind words! And yes, when people see they can create a file and do a commit online with GitHub, it becomes less intimidating. Then when they clone and do some Git commands, it hopefully makes a bit more sense.
I really enjoyed putting this tutorial together, so it's extra-rewarding to hear you enjoyed it!
To be honest, this is one of the best tutorial for git and GitHub in youtube.
Can you do the tutorial video for docker? it will be very helpful
I juste made PAUSE in 6.54 Min - i have seen lot of explantation about Git but that's so clear and the little screen that shows what each of the code does j-u-s-te "Briallant" !!!! Mr McKenzi you're an amazing guy - juste because its so easy for you to do that actually tell how skilled you are. Thank you, i'am excited to finish still 1H53min up to the end.
Yet not a mention of my Super Mario speed run?
Thank you for this because I want to incorporate GitHub into my Python and C++ courses.
You are taking both Python and C++? That's like learning how to drive a go-cart and a Formula 1 car all at the same time.
Stay safe from all those pointers in C!
all those scratches on his hand must be from github branches search. perfect video, btw, thanks a lot
I've got a cat that thinks it's a tiger. Glad you enjoyed the video. And I'll be smart and play with the cat with gloves on.
Thank you so much. It was pretty easy for me to understand this lesson. I’m glad I stumbled on it
I'm glad you stumbled on it too! Truth be told, I cover a lot of topics and get to advanced topics pretty quickly compared to other tutorials. If you kept you, then you're pretty much a Git expert now!
Wow, I'm not sure if there's anything in that Git and GitHub tutorial that wasn't covered! Learned a lot.👍
Thanks for all your help with the videos and editing!
Thank you for this amazing course !
All the praise goes to Git and GitHub for creating amazing products. All I did was click some buttons and talk into am mic. But having said that, thanks so much for the kind words. It feels great knowing that you enjoyed it!
Great tutorial; I learned a lot. Thanks!
Thanks for the kind words! I really enjoyed putting this together. Lots that I've learned about video editing and stuff since, plus a few things I might add to make Git and GitHub easier to learn, so with motivational comments like this, I'm inspired to do an update and make it even better.
Thanks for watching!
Great course, really enjoyed it!!!
Git and GitHub are pretty awesome tools when combined. It make doing this video super-easy. Thanks for watching!
I love your way of teaching, easy & interacting. Thank you, I learned a lot from you. Appreciate all your efforts!
Thanks so much for the kind words! Honestly, Git and GitHub make it easy, they're such awesome tools. I will say, I did have fun doing this Git and GitHub tutorial. Great to know you enjoyed it too!
Hi Cameron thanks for this Quick Intro to GIT and GITHUB. Very Useful but i have a a small correction to suggest : At 40:25 you mention the git INDEX gets cleared after a commit but in reality the INDEX is not cleared after a commit rather its contents now matches the latest commit . Infact the files in the INDEX can be viewed by running the command : git ls-files --stage
Great comment. You’re 100% correct. I’ll try and choose my words better to account for that nuance. Thanks for keeping me honest!!!
I love the way you explain sir. Really appreciate your work
Thanks for the kind words! Things like that really motivate me to make more!
Eagerly waiting for javascript tutorials 😊
Unlike other courses, yours was easy to follow. Thank you.
That's very high praise, as there are lots of Git and GitHub courses and tutorials out there. I really enjoyed making this video, and I do hope my enthusiasm shows.
Thanks for watching and subscribing!
Great teaching method there. You picked a very simple and effective method of naming the files using a familiar system avoiding extra cognitive load of remembering file creation order etc.
Looked like a quickie at the end but stash makes it really useful when you want to stash changes in a file rather than the whole file.
Great tutorial nonetheless. Thanks for providing it for free.
Thanks! I honestly enjoyed putting together this git and github tutorial, and I've used these examples many times over the years and they seem to really hit home with people. And yeah, git stash was a bit of an afterthought, but it seemed wrong to leave it out.
Thanks again for watching and commenting!
Good learning again from this excellent training session!!!
Honestly, Git and GitHub makes it super. Two completely amazing tools!
Thanks Cameron, your work saved me time and gave me overall understanding on the flow of version control :)
Thanks for the kind words! Any time I can make Git and GitHub easier to learn, I feel I've done my job!
I love how you teach! You're very intelligent, both IQ and EQ (many tech savvy people lack the latter). You know not only what to say but also how to say... . Thank you so much, and new subscriber here :-D
Thank you for the kind words!
I honestly really enjoyed putting this video together. It's great knowing people actually learned from it.
Happy Git!
@@cameronmcnz Haha! Yeah, it's like you're telling a story... with dialogues, monologues, the sequence of events, everything... and that's magic when it comes to teaching. Not everyone can do that... not everyone can tell a "story".
Cheers all the way from Sydney, AU
Your tutorials are super enjoyable (you're so funny lol) and SO helpful!!! You make learning all this stuff easy, fun, and not at all scary. :)
Thanks for the kind words! I honestly had a lot of fun making this Git and GitHub crash course. Plus, I'm a big Devo fan, so any time I can say Devo it makes me smile.
Amazing Cameron... Fantastic flow... Was struggling to put the pieces together.. This video has helped in bringing clarity. Thanks
Thanks for the kind words! I've been teaching people about Git and GItHub for years and I've tried really hard to put things together in a journey that has a sensible flow, but at the same time, has sections that are very independent so you can jump in anywhere.
Glad you enjoyed it and thanks for watching!!!
Wow, what a clear way of teaching, well done , hats down sir!
I want to know you that....this is the best git and github tutorial in RUclips,moreover I liked your teaching style.
Is this my Mom posting nice things again under a puppet account?
Nope …student from india🤗
@@fraudude3841 Well thanks so much for the kind words of support. I really enjoyed putting this tutorial together. Once you understand the basics, Git and GitHub gets a lot easier!
This video is so engaging didn't get any distraction... Thank you for the video....
Thanks for the kind words! I really enjoyed putting this Git and GitHub tutorial together. I'm glad you liked it.
your teaching is amazing only to the point
You're too kind! I'm so glad you enjoyed this Git and GitHub tutorial!
Amazing Git and GitHub tutorial for beginners like me!
Very good video. I I learn lot.
Thank you for these lessons from Russia You're a very cool teacher.
Don't stroke his ego! 🤣
Thank you so much for the kinds words. But Git and GitHub really make it easy. Regards from Canada!
Thanks for the 2x speed recommendation
I"m here for ya! 🤣And I never want to waste anyone's time. (Thanks for viewing!)
Really make it easy to learn Git and GitHub!
Thanks Cameron! Very useful information about git.
Thanks! I really enjoyed putting this Git and GitHub tutorial together!
Very helpful
Thanks for watching and subscribing!
I had a lot of fun putting this together. GitHub makes Git a heck of a lot easier!
This vedio is so brilliant
Well, it's Git and GitHub that's brilliant. I'm just the conduit.
Thanks so much for watching!
Love the way you teach ❤
Thanks for the kind words! Sometimes I wonder if I'm wasting my time doing these tutorials. Feedback like this inspires me to keep producing.
I really enjoyed putting this Git and GitHub video tutorial together!
Thanks for this great tutorial.
Thanks for the kind words! Trying to really up my RUclips game for 2024!
Thank you for the quality content
Thanks for the kind comment!
perfectly explained
Thanks for the kind words! This was one of my funest videos to do.
its great tutorial
I'm glad you're enjoying it! I had a lot of fun putting together this git and github tutorial. The two tools work so seamlessly together!
thanks a lot for your tutorial video, it helps me
My pleasure. Have fun working with Git and GitHub!
I always thought when we “add” a file to the staging area, it’s more because we need to bundle up certain files that we want to include into the upcoming commit.
I don't think you said anything wrong there. Did I say it differently, because you're correct?
@@cameronmcnz no you’re right. I misunderstood and jumped the gun a bit with my comment. Git is so confusing to me but damn this course is really good. I didn’t know the difference between fetch and pull before and it’s starting to make sense. Also, the visual guide is amazing
@@TheIntrovertsDebrief-lq4hg Oh, Git can really be overwhelming. But there's a real elegance to it, and once you kinda know how the pieces all fit together, you really start to understand how the whole Git thing works. I really enjoyed doing this tutorial, and it's great to hear others getting something out of it!
Fantastic!👏
I understand that git checkout is not recommended. So what should be used for if you want to be on a specific commit of a branch? For example, a tester might need to test something on an older commit. In VSCode, there is a “checkout” option for that. But is there another way?
I think checkout will still be used for times when an actual 'checkout' of something is needed. As of now, I don't think you can switch to a specific git commit, while with checkout it's a core feature.
i dont know what to say am not confused anymore thank u mc
Best way to start a weekend hearing that I've helped someone begin to learn Git and GitHub as much as I do!
Thanks for the kind words. It makes my day!
So am I right in saying that we can also add an SSH key to be able to push to origin without needing to sign in each time?
Good video
You didn't mention anything about SSH keys
could you make shell tutorial too??
You're thinking more of a pure Git tutorial that just works locally with Git and focusses on core Git commands? It's not a bad idea.
i'm looking for this tutorial .
i hope to find my savior here. 😂
I hope you enjoy it! I enjoyed putting it together.
It moves pretty fast, as my viewers tend to want to jump right in and get working with the technology. If there's anything that's unclearly, just let me know!
after typing
git push origin
the reply i get is
remote: Permission to Abdul-Rahman/my-project.git denied
fatal: unable to access "..." The requested URL returned error 403
what am I doing wrong, sir?
@@rahmanmusah4470 That's a credential issue. 403 is security, so Git doesn't like your username and password. And in fact, it can't be your password. You have to generate an auth token for GitHub. If you're on Windows, it might sign you in with your browser, but if that's happened before, Windows Credential Manager might have an old Git username and password.
Does any of that make sense?
ruclips.net/video/m5SChqEi314/видео.htmlsi=i96wTEOtVnNhATVg
@@cameronmcnzokay
lemme try again after watching the explanatory video.
thanks, sir.
@@rahmanmusah4470 Good luck. There are a number of issues you can run into so let me know how it goes!
18:23-18:29 :-DDD
chael sonnen????
???
you are so handsome and so smart at the same time which makes me so hot. i love seeing hot guys teaching me coding!
Get in line, princess. Get in line.