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

КОМЕНТАРІ • 172

  • @DaveGrayTeachesCode
    @DaveGrayTeachesCode  Рік тому +15

    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

  • @CTILET
    @CTILET Рік тому +49

    Dave is best of the best teachers in UA-cam!

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому +10

      Thank you!

    • @mindblown9365
      @mindblown9365 Рік тому +2

      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.

    • @mohamedikram5135
      @mohamedikram5135 10 місяців тому +1

      The only teacher that helped me understand JS closure.

    • @xzex2609
      @xzex2609 9 місяців тому

      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

    • @jon.sykes_thedeveloper
      @jon.sykes_thedeveloper 3 місяці тому

      AGREED! DAVE IS AWESOME!

  • @isobelcoetzee5645
    @isobelcoetzee5645 Рік тому +9

    Finally - a REAL beginner guide! Thank you, Dave!

  • @paulsheppard7595
    @paulsheppard7595 5 місяців тому +1

    Simply superb, many, many thanks Dave.

  • @MOJICA7257
    @MOJICA7257 Рік тому +4

    Thanks Dave!
    We appreciated your efforts for the community, Great Content!

  • @codie12
    @codie12 Рік тому +1

    Just the one I need right now! Thank you Dave! Appreciate your effort!

  • @DiegoBM
    @DiegoBM Рік тому +1

    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!

  • @amadujalloh4700
    @amadujalloh4700 Рік тому

    Just when I need it, Dave makes it!
    Thank you so much 😊

  • @mr.t967
    @mr.t967 10 місяців тому

    Thanks for your video, you have know idea how much it helped me!

  • @memo-ex7yt
    @memo-ex7yt Рік тому

    we love u Dave!!! u learning method is top-notch!!

  • @prashlovessamosa
    @prashlovessamosa Рік тому +1

    Thank you Dave i was looking for it and you upload this video thank-you.

  • @ugib8377
    @ugib8377 12 днів тому

    This was a really good intro to Git/GitHub. I learned a ton here. Thanks for this.

  • @spiroskounos9752
    @spiroskounos9752 12 днів тому

    That was a wonderful tutorial for me Thank you very much!!!

  • @onethree123d
    @onethree123d Рік тому

    Thank you! I think I'm set up well for now.

  • @Hybridham86
    @Hybridham86 Рік тому

    Sir thank you so much for this short but very precise and to the point video, you've got a new subscriber !

  • @fizzdevdesigns5699
    @fizzdevdesigns5699 Рік тому

    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!

  • @archivelib3379
    @archivelib3379 Рік тому +2

    I just happen to see this video posted 34 seconds ago! And I was thrilled. Thanks Dave for your tutorials on different technologies!

  • @jim7smith
    @jim7smith 9 місяців тому +1

    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.

  • @xRichhhx
    @xRichhhx Рік тому +4

    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 ;)

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому +2

      Thank you! Yes, I will continue with some more depth in other videos.

  • @ferozekhan267oa
    @ferozekhan267oa Рік тому +1

    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!

  • @inovasiMG
    @inovasiMG 6 місяців тому

    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

  • @bapinchakraborty5329
    @bapinchakraborty5329 Рік тому

    This was necessary.
    Thank you very much Dave ❤❤❤

  • @user-te2pe5qm8o
    @user-te2pe5qm8o Рік тому +1

    Can't wait for the second part!

  • @rockfield64returns67
    @rockfield64returns67 Рік тому

    This video helped me learn the basics of git. Thank you, man. I owe you one.

  • @dng7470
    @dng7470 6 місяців тому

    Thank you Dave!

  • @dezlymac
    @dezlymac 11 місяців тому

    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.

  • @Hazemkhaled-jj7ob
    @Hazemkhaled-jj7ob Рік тому

    from Egypt with tons of love , thank you for your explanation .. this lesson was incredibly helpful

  • @masteroogway6808
    @masteroogway6808 Рік тому

    Thank you so much for this video...I understood everything, please make advanced git as you said in last ASAP
    THANK YOU AGAIN DAVE

  • @okon1624
    @okon1624 4 місяці тому

    Mr Dave you've really help me on my coding joining 🙏🙏

  • @davidvanaelst2884
    @davidvanaelst2884 4 місяці тому +1

    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.

  • @uccoskun
    @uccoskun 8 місяців тому

    Amazing instructions.

  • @nahidfaraji5069
    @nahidfaraji5069 Рік тому +2

    Really appreciable ❤️ we need advance git tutorial also . 😎

  • @thirumalr333
    @thirumalr333 Рік тому

    Dave I'm very grateful to you. Progress over perfection

  • @Musictomyears1977
    @Musictomyears1977 Рік тому

    Great video, thank you!

  • @agus-wesly
    @agus-wesly Рік тому +1

    can't wait for the advance git tutorial. Anyway, great tutorial as always !

  • @andrewclarke6916
    @andrewclarke6916 Рік тому

    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.

  • @Daviddd10
    @Daviddd10 Рік тому

    Youre such an amazing teacher!

  • @ShruthiLakshminarayana
    @ShruthiLakshminarayana Рік тому

    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!🙏

  • @ankushmalik8257
    @ankushmalik8257 Рік тому

    Very clear and simple understanding, Thanks. Please teach advance git topics also soon.

  • @Alex-bc3xe
    @Alex-bc3xe Рік тому

    Your thumbnails are awesome and you teach also nice 👍 a true distinguished gentleman

  • @rashidbehnam2139
    @rashidbehnam2139 Рік тому

    Best Content, I would be appreciated using git along with your next tutorial projects 🙏🙏🙏

  • @yourskoolboy
    @yourskoolboy 10 місяців тому

    Thank you very much Sir

  • @romanr5962
    @romanr5962 Рік тому

    nice! Thanks Dave

  • @jamshid5995
    @jamshid5995 Рік тому

    You are very awesome teacher !🔥🔥

  • @TravinskiyVladislav
    @TravinskiyVladislav Рік тому

    Nice, thank you

  • @tdoc666___
    @tdoc666___ Рік тому +1

    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

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому

      Thank you! Yes, SSH key creation and usage could be shown in another video. It could be overwhelming for a git beginner.

  • @MohammadrezaEmamyari
    @MohammadrezaEmamyari 10 місяців тому

    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???

  • @alexanderkomanov4151
    @alexanderkomanov4151 Рік тому

    Thanks a lot!

  • @jatinshankarchatterjee
    @jatinshankarchatterjee Рік тому

    It might just be something very little, but the best part of tutorial is when Dave corrects saying, " if I could spell it correctly."😃

  • @elvispontes4165
    @elvispontes4165 Рік тому

    The best professor as aways!

  • @DasunWijesundara
    @DasunWijesundara Рік тому

    Thank You Gray ,my request is fulfilled :)))))))))))))

  • @World_information5568
    @World_information5568 Рік тому

    Thank you very much Sir 😊❤️

  • @alif_hasan_shah
    @alif_hasan_shah Рік тому

    Thank you so much. Please make an advanced video about git and github.

  • @divpolitics9520
    @divpolitics9520 Рік тому

    goddamn Dave keeps delivering

  • @developedbypy
    @developedbypy Рік тому

    I think you're a mind reader DAVE! THANKS NEEDED THIS

  • @akshaynarwadkar5264
    @akshaynarwadkar5264 Рік тому +2

    I wanted to learn git
    And you came with the tutorial great !

  • @ayushkathariya
    @ayushkathariya Рік тому

    Thank you!

  •  3 місяці тому +1

    I love this guy

  • @travelwdrk
    @travelwdrk Рік тому

    Great video sir🫡 and thankyou for teaching in this amazing way
    when will advance git and github video come ??

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому +1

      I will continue to make them along with other content, but I don't have a specific date for them.

    • @travelwdrk
      @travelwdrk Рік тому

      @@DaveGrayTeachesCode will wait for it

  • @vishalraj3762
    @vishalraj3762 Рік тому

    Dave, please make a video course for GraphQL. That would be great! Thanks for your invaluable courses. Your voice is amazing!!

  • @cloudproblemssolved
    @cloudproblemssolved 3 місяці тому

    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!

  • @MickeyB164
    @MickeyB164 Рік тому

    East to West.... Dave is the Best ❤️❤️❤️

  • @lokeshkavisth
    @lokeshkavisth Рік тому

    Amazing video sir🥳
    Can you please make a video on team work with git ?😊

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому

      Thank you! Yes, that will be one of the next git topics I cover. 🚀

  • @semereyohhanes2683
    @semereyohhanes2683 2 місяці тому

    can u tell us the differnce between the cloning and our own project ?like the fiffernce between local and remote repo.

  • @onethree123d
    @onethree123d Рік тому

    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!

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому +1

      You can learn git and GitHub along the way. They are tools that will help and are widely used.

  • @ihateorangecat
    @ihateorangecat Рік тому

    Finally the OG tech!!
    One question please.. 🙋‍♂️
    Do you have a plan to make any react native courses in future??
    just asking.. 😊

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому +3

      Thank you! Answer: Yes, but a few other things first like Next.js 😀

    • @ihateorangecat
      @ihateorangecat Рік тому

      @@DaveGrayTeachesCode Thank You too!
      Both awsome!. 🤩🤗

  • @chidimbamalu3490
    @chidimbamalu3490 Рік тому

    Liked before watching.....

  • @xenusugi
    @xenusugi Рік тому

    have a great day too

  • @omkar1307
    @omkar1307 Рік тому

    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?

  • @02_matinkadri67
    @02_matinkadri67 Рік тому

    Waiting for NextJS 13 tutorial🔥

  • @maxralph01
    @maxralph01 Рік тому

    No. 1!

  • @nahomhailu961
    @nahomhailu961 Рік тому

    Dave 👑 ❤️

  • @keyonlewis7574
    @keyonlewis7574 11 місяців тому

    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

  • @saswatpranat6748
    @saswatpranat6748 Рік тому

    Sir make a video about fastest way to learn web developement

  • @SanjuKumar-hk8yy
    @SanjuKumar-hk8yy Рік тому +1

    Please make a video on GRPC. It is my humble request.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому +1

      Thank you for the request! I think you are requesting tRPC

    • @SanjuKumar-hk8yy
      @SanjuKumar-hk8yy Рік тому +1

      @@DaveGrayTeachesCodeyes, thanks for your replying.😊😊

  • @semereyohhanes2683
    @semereyohhanes2683 2 місяці тому

    why is it showing me the web page browser inside my github rather than only the code

  • @saswatpranat6748
    @saswatpranat6748 Рік тому +1

    Dave sir, can a absolute beginner start coding reading documentation like MDN. Who does not comfortable with video tutorials

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому +2

      I think it depends on the person. Videos are easier for most. MDN is great but reads mostly in a technical way.

  • @sverigesam1882
    @sverigesam1882 7 місяців тому

    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?

    • @delfinenteddyson9865
      @delfinenteddyson9865 Місяць тому

      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

  • @iAmTheWagon
    @iAmTheWagon Рік тому

    Hell yeah 👍

  • @tracktor25
    @tracktor25 Рік тому

    i got a problem when i push and my code doesnt appear on github

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому

      Please review the steps in the video again. Make sure you link your repository to the Github repository you create. I show how.

  • @tmt878
    @tmt878 Рік тому

    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

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому +1

      It is one lesson for absolute beginners. I plan to add more in the future but this helps beginners get started.

  • @rickfessler
    @rickfessler Рік тому

    are you still going to do more git/github tuts? or is this the only one

  • @venkatsaivikram9492
    @venkatsaivikram9492 Рік тому

    Hey Dave! Vue js course possibilites!??

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому

      Not on the horizon right now. @ProgramWithErik has some nice Vue content. 💯

    • @venkatsaivikram9492
      @venkatsaivikram9492 Рік тому

      @@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.

  • @gullapallijyothikiran3371
    @gullapallijyothikiran3371 Рік тому +2

    hi sir from india

  • @TomWien
    @TomWien Рік тому

    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 😉

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому +1

      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. 🚀

    • @TomWien
      @TomWien Рік тому

      @@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 ;))

  • @dlbet4110
    @dlbet4110 2 місяці тому

    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?

  • @RobertVeale
    @RobertVeale 17 днів тому

    git repository different than the one in the video

  • @BMikel
    @BMikel Рік тому

    oh shit, it's git.
    Excuse me, i meant git smts is tricky.
    Thanks for tutorial

  • @TheLastPhoen1x
    @TheLastPhoen1x 21 день тому

    Tutorial on how to GIT GUD.

  • @yesharshyes
    @yesharshyes Рік тому

    you god 35:00

  • @Duelweb
    @Duelweb Рік тому

    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.

  • @TraceCloveir-hs8yq
    @TraceCloveir-hs8yq 2 місяці тому +1

    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.

    • @ugib8377
      @ugib8377 12 днів тому

      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.