Git Tutorial for Absolute Beginners
Вставка
- Опубліковано 27 лип 2024
- This Git Tutorial for Absolute Beginners will take you from zero knowledge of git, version control, and GitHub to the most common workflows you will use as a beginner that is learning how to code.
👉 Git Cheatsheet for Beginners (free download): courses.davegray.codes/git-ch...
🚀 Become a full-stack web dev with Zero To Mastery Courses:
- Advanced React: bit.ly/AdvReactDev
- The Complete Web Developer: bit.ly/WebDevMaster
- Junior to Senior Dev Roadmap: bit.ly/WebDevRoadmap-JrtoSr
🚩 Subscribe ➜ bit.ly/3nGHmNn
📬 Course Updates ➜ courses.davegray.codes/
❓ Questions - Please post them to my Discord ➜ / discord
☕ Buy Me A Coffee ➜ www.buymeacoffee.com/davegray
👇 Follow Me On Social Media:
Github: github.com/gitdagray
Twitter: / yesdavidgray
LinkedIn: / davidagray
🔗 Clone this GitHub repository to practice: github.com/gitdagray/git-code...
Git Tutorial for Absolute Beginners
(00:00) Intro
(00:17) Welcome
(00:40) What is Git?
(01:04) What is Version Control?
(01:38) What is GitHub?
(02:10) Git Cheatsheet Download
(02:57) Install Git
(03:17) Install VS Code
(03:44) Open a New Folder
(04:17) Make Git Bash your Default Terminal
(06:36) Check Git Version
(07:01) Configure Git
(09:20) Git Help
(09:54) VS Code File Exclude Setting
(11:19) Cloning a Tutorial Repository
(14:56) Removing Git from a Tutorial
(16:32) Creating Your Own Project Repository
(19:52) Tell Git to Ignore a File
(20:40) Adding All Files
(21:00) Modified File Status
(22:14) Discarding Changes
(22:56) Making Commits
(27:36) Sending Your Git Repository to GitHub
(32:54) Remembering Credentials
(35:11) Future Git Tutorial Topics
📚 Tutorial References:
🔗 Git Official Website: git-scm.com/
🔗 GitHub: github.com/
🔗 MDN - Git & GitHub: developer.mozilla.org/en-US/d...
Was this Git Tutorial for Absolute Beginners helpful? If so, please share. Let me know your thoughts in the comments.
#git #tutorial #beginners
Remember to download the free Git Cheatsheet that goes with this video: courses.davegray.codes/git-cheatsheet-for-beginners
Got Questions? Join my Discord: discord.gg/neKghyefqh
You are the best yotuber
Dave is best of the best teachers in UA-cam!
Thank you!
He has the best programming content on UA-cam and is the best resource if you want to go from intermediate to advanced. But he is certainly not a good teacher for beginners.
The only teacher that helped me understand JS closure.
He really is I know lots of them , and in terms of being a good teacher he is one of the two bests , the other is Bro Code
AGREED! DAVE IS AWESOME!
Finally - a REAL beginner guide! Thank you, Dave!
Simply superb, many, many thanks Dave.
Thanks Dave!
We appreciated your efforts for the community, Great Content!
You're welcome!
Just the one I need right now! Thank you Dave! Appreciate your effort!
You're welcome!
Thanks for the video Dave. It will probably be the most asked thing, but a video going in depth about branching, merging and rebasing would be golden!
Thanks for the request!
Just when I need it, Dave makes it!
Thank you so much 😊
You're welcome! 💯
Thanks for your video, you have know idea how much it helped me!
we love u Dave!!! u learning method is top-notch!!
Thank you Dave i was looking for it and you upload this video thank-you.
You are welcome!
This was a really good intro to Git/GitHub. I learned a ton here. Thanks for this.
That was a wonderful tutorial for me Thank you very much!!!
Thank you! I think I'm set up well for now.
Sir thank you so much for this short but very precise and to the point video, you've got a new subscriber !
Awesome, thank you!
Even if I had extensively used those basics, you still bring a new light to it and I learned a lot. I look forward to other git-related contents! It would be great, at some point, to have a tuto on how to solve common conflicts while working with other devs... But it would probably mean a number of intermediary tutos? Thank you for everything Dave!
You're welcome!
I just happen to see this video posted 34 seconds ago! And I was thrilled. Thanks Dave for your tutorials on different technologies!
You're very welcome!
Nicely done, Dave. My primary use of git, at least for the time being, is to keep up with my .bash_aliases file and my scripts that I want on every linux computer I set up. I am really tired of have to scp or worse yet, use a usb stick or something. Also, the advantage of using git is that if I add new items to my .bash_aliases file, it is trivial to replace the files on the other systems. Another advantage is that I can share my aliases and scripts with others when I start my own tutorial series.
I'm familiar with everything listed in this video so I would really like to see the more in-depth stuff, you are really good at explaining every topic in detail! I've never really looked to hard into Git except for the basic commands myself so maybe I'll pick up a few tricks then ;)
Thank you! Yes, I will continue with some more depth in other videos.
Hello Dave, Big fan of your work. A big Thank you on behalf of the community. Really appreciate your contributions and efforts towards community learning. Quick question, when are you going to do the follow up video to the Git for Absolute Beginners? People are eagerly waiting for new content about Branching and Merging. Thanks in advance. Cheers!
Thank you and thank you for the request!
hello, thank you. Mr. Dave, I'm new to coding systems, but with the money tutorial we explained, I started to understand even a little. Thank you. Good people. Greetings from Indonesia
This was necessary.
Thank you very much Dave ❤❤❤
Glad it was helpful!
Can't wait for the second part!
Yes, I need to make part 2 🚀
This video helped me learn the basics of git. Thank you, man. I owe you one.
Glad it helped!
Thank you Dave!
This has to be easiest Git tutorial on UA-cam to follow along! Thank you Dave!
I just want to add that when ran the command "git push -u origin main"
I got this message "error: src refspec main does not match any. error: failed to push some refs to"
I ran the command git add, followed by making a commit... and the Git Credentials manager popped up and sorted things out. Hope that helps out anyone who comes accross this issue.
from Egypt with tons of love , thank you for your explanation .. this lesson was incredibly helpful
Happy to help! And hello 👋 to Egypt!
Thank you so much for this video...I understood everything, please make advanced git as you said in last ASAP
THANK YOU AGAIN DAVE
You are most welcome!
Mr Dave you've really help me on my coding joining 🙏🙏
Hi Dave,
I just started learning how to code and have gone true your HTML course and working true your CSS course.
My final goal is getting to a decent level in JavaScript.
Being almost 50 I must say it is a little dounting, but I hope that your courses will get me there.
Thank you for sharing these courses.
David.
Keep going! 🚀
Amazing instructions.
Really appreciable ❤️ we need advance git tutorial also . 😎
Noted! 💯
Dave I'm very grateful to you. Progress over perfection
I appreciate that!
Great video, thank you!
You're welcome!
can't wait for the advance git tutorial. Anyway, great tutorial as always !
Thank you!
Hope you're going to drop in some more advanced Git tutorials somewhere down the line, Dave. Quite a few employers here in the UK request experience in using Git in their job descriptions.
Yes, I want to do that! Thanks for the request!
Youre such an amazing teacher!
Thank you!
Thank you so much, your tutorials are very helpful,precise, easy to understand & its exciting to find out websites like w3c, coolers,webaim etc..are available to make the work easier! I have downloaded the cheetsheet, feels like a good choclate bite!🙏
Glad to hear that!
@@DaveGrayTeachesCode 🙏🏼🙏🏼🙏🏼
Very clear and simple understanding, Thanks. Please teach advance git topics also soon.
Thank you and will do!
Your thumbnails are awesome and you teach also nice 👍 a true distinguished gentleman
Thank you so much 😀
Best Content, I would be appreciated using git along with your next tutorial projects 🙏🙏🙏
Thank you!
Thank you very much Sir
nice! Thanks Dave
You're welcome!
You are very awesome teacher !🔥🔥
Thank you! 😃
Nice, thank you
Welcome!
Hi Dave, very great content i have to say, i would like to specify(in case you forgot to mention haha) that for pushing the content into github i strongly believe it will be easier to add an ssh public key to in order to commit and to stuff, anyway, i really like your content, is very coincise and defined hahaha
Thank you! Yes, SSH key creation and usage could be shown in another video. It could be overwhelming for a git beginner.
Hey Dave. Thanks a ton for your super great and helpful video. But a question... What VS Code theme are you using in this video???
Thanks a lot!
You're welcome!
It might just be something very little, but the best part of tutorial is when Dave corrects saying, " if I could spell it correctly."😃
Haha - I do that in too many tutorials! 😆
The best professor as aways!
Thank you!
Thank You Gray ,my request is fulfilled :)))))))))))))
You are welcome!!
Thank you very much Sir 😊❤️
Most welcome!
Thank you so much. Please make an advanced video about git and github.
Noted! 💯
goddamn Dave keeps delivering
I think you're a mind reader DAVE! THANKS NEEDED THIS
Glad to hear that!
@@DaveGrayTeachesCode when is the next git video coming out?
I wanted to learn git
And you came with the tutorial great !
Glad to hear that!
Hahahaha, same issue and interest. ☺️🤞
Thank you!
You're welcome!
I love this guy
Great video sir🫡 and thankyou for teaching in this amazing way
when will advance git and github video come ??
I will continue to make them along with other content, but I don't have a specific date for them.
@@DaveGrayTeachesCode will wait for it
Dave, please make a video course for GraphQL. That would be great! Thanks for your invaluable courses. Your voice is amazing!!
Thank you for the kind words and request! 💯
this helped me better understand your other puthon web app tutorial with flask.
I could not see my .gut folder and found out in this video the reason why. In Settings under Files: Exclude, I had **/.git selected which did not let me see the git folder, thx so much!
East to West.... Dave is the Best ❤️❤️❤️
Thank you!
Amazing video sir🥳
Can you please make a video on team work with git ?😊
Thank you! Yes, that will be one of the next git topics I cover. 🚀
can u tell us the differnce between the cloning and our own project ?like the fiffernce between local and remote repo.
When do u think someone should start focusing on the other topics? I'm gonna start with js today and I'm following your web dev road map, I am not sure if there is more I need to know right away or later regarding git and github or if I will end up learning what I need as I take your courses all the way to mern? Thank you again!
You can learn git and GitHub along the way. They are tools that will help and are widely used.
Finally the OG tech!!
One question please.. 🙋♂️
Do you have a plan to make any react native courses in future??
just asking.. 😊
Thank you! Answer: Yes, but a few other things first like Next.js 😀
@@DaveGrayTeachesCode Thank You too!
Both awsome!. 🤩🤗
Liked before watching.....
Thank you!
have a great day too
Thank you!
im big fan of yours
im having one doubt that i just started learning css after html
is it too early to learn git and github?
It is not too early. It will be a useful tool for all projects.
Waiting for NextJS 13 tutorial🔥
Very soon.
No. 1!
Dave 👑 ❤️
Thank you!
me watching this didn't know the different be between git and github, while i using github desktop for over 8 months. thinking to my self i did all this before and know to do it more easy
Sir make a video about fastest way to learn web developement
Here it is: ua-cam.com/users/shortsOM0goBLkkQ8
Please make a video on GRPC. It is my humble request.
Thank you for the request! I think you are requesting tRPC
@@DaveGrayTeachesCodeyes, thanks for your replying.😊😊
why is it showing me the web page browser inside my github rather than only the code
Dave sir, can a absolute beginner start coding reading documentation like MDN. Who does not comfortable with video tutorials
I think it depends on the person. Videos are easier for most. MDN is great but reads mostly in a technical way.
I can’t seem to post on here. I have an access is denied error when I try to do 31:20. I have tried starting this over two times and I am following. Could it be because I set the repository to private?
you probably already fixed that issue yourself, but for the people comming late:
I believe the issue is, that you took the git-repository from Dave that is in the discription, which is the folder he worked on right here. And in that folder he has already set the url to his github and the terminal command doesn't overwrite it; so you have to change the url in the config file to your own github repository manually.
If that's clear
Hell yeah 👍
Right on! 🤘
i got a problem when i push and my code doesnt appear on github
Please review the steps in the video again. Make sure you link your repository to the Github repository you create. I show how.
My question is;
Is it a complete and full course for git and Github or is it a crash course?
Thanks for replying back
Best regards
It is one lesson for absolute beginners. I plan to add more in the future but this helps beginners get started.
are you still going to do more git/github tuts? or is this the only one
I will do more. I do have a playlist with a few.
@@DaveGrayTeachesCode thank you
Hey Dave! Vue js course possibilites!??
Not on the horizon right now. @ProgramWithErik has some nice Vue content. 💯
@@DaveGrayTeachesCode Being honest... I'll wait for yours coz I love your own way of teaching framework just like building to-do and blog app in react.
hi sir from india
Welcome! And hello 👋 to India!
Jesus Christ!!!
... are you able to read my minds? 😇🤗
As a "beginner" and hobbyist in coding, I struggle at the moment to get a repo to an "older" version. (=Branch)
Sooooo. I start your content now and hope to find some answers 😉
I do not have this power 😆 ...this tutorial goes from step one as an absolute beginner with Git. It shows basics but does not start diving into branching and merging (or finding a version in history) but good to know you want this in the future. 💯 Download the available cheatsheet for this one. You may find something useful all the same. 🚀
@@DaveGrayTeachesCode it looked like 🤣🤣🤣. Extra valuable content, as always. I barely comment, due to my english and being too new. Sorry. 😇 Well, I try to download an old branch your method. (I always opened a new branch after my code "worked", but I always used the little side/pic at the left side of VS.) A LITTLE serie could probably help a lot of newbies ;))
Not for ABSOLUTE beginners. I did install Git, but it won't show up in VS Code. How do I do that? I type in for version and it gives me an error. You're missing a step?
git repository different than the one in the video
oh shit, it's git.
Excuse me, i meant git smts is tricky.
Thanks for tutorial
You're welcome! 😆
Tutorial on how to GIT GUD.
you god 35:00
BMW is a brand, so is Mercedes. And so is Dave Gray! It's called Rolls Royce ! Man, your teaching style so appeals to me.
Thank you! 💯
Your tutorial for "beginners" went from zero to intimidating because you skipped the installation progress of Git and Visual Code. I don't know if to leave settings alone to use defaults??? After I installed Visual Code I get a prompt for code extensions which I have no clue what to do about. I am stuck there..... It is good you are showing your screen but don't skip these steps in favor of a diatribe history explanation of git. Its in one ear and out the other without us actually doing it and applying for a beginner. Installing and using Git is hands on and I can relate it to learning how to do plumbing with an apprenticeship. You learn while actually doing things like turning off water valve and doing things step by step. Please show first the process on the screen then follow with a short explanation on what happened.
I had the same feelings about his Python tutorial for beginners awhile ago now. It was rapid fire, and certainly not for beginners. I'm gonna give this one a shot though.
Visual Studio Code extensions allow you to customize your work environment depending on what language you're writing in.
Languages have their own Extensions. For Python the Python/Pylance extensions, for Rust the rust-analyzer, C#/C# dev kit/Intellicode for C#, and so on.