Git Tutorial for Absolute Beginners

Поделиться
HTML-код
  • Опубликовано: 4 авг 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

  • @isobelcoetzee5645
    @isobelcoetzee5645 Год назад +9

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

  • @CTILET
    @CTILET Год назад +49

    Dave is best of the best teachers in RUclips!

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Год назад +10

      Thank you!

    • @mindblown9365
      @mindblown9365 Год назад +2

      He has the best programming content on RUclips 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 10 месяцев назад

      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!

  • @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!

  • @ugib8377
    @ugib8377 19 дней назад

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

  • @spiroskounos9752
    @spiroskounos9752 19 дней назад

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

  • @memo-ex7yt
    @memo-ex7yt Год назад

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

  • @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!

  • @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!

  • @mr.t967
    @mr.t967 10 месяцев назад

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

  • @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!

  • @amadujalloh4700
    @amadujalloh4700 Год назад

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

  • @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!

  • @jim7smith
    @jim7smith 10 месяцев назад +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.

  • @prashlovessamosa
    @prashlovessamosa Год назад +1

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

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

  • @Hybridham86
    @Hybridham86 Год назад

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

  • @onethree123d
    @onethree123d Год назад

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

  • @dng7470
    @dng7470 7 месяцев назад

    Thank you Dave!

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

  • @user-te2pe5qm8o
    @user-te2pe5qm8o Год назад +1

    Can't wait for the second part!

  • @uccoskun
    @uccoskun 8 месяцев назад

    Amazing instructions.

  • @bapinchakraborty5329
    @bapinchakraborty5329 Год назад

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

  • @dezlymac
    @dezlymac 11 месяцев назад

    This has to be easiest Git tutorial on RUclips 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.

  • @Musictomyears1977
    @Musictomyears1977 Год назад

    Great video, thank you!

  • @Hazemkhaled-jj7ob
    @Hazemkhaled-jj7ob Год назад

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

  • @rockfield64returns67
    @rockfield64returns67 Год назад

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

  • @davidvanaelst2884
    @davidvanaelst2884 4 месяца назад +2

    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.

  • @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 🙏🙏

  • @nahidfaraji5069
    @nahidfaraji5069 Год назад +2

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

  • @romanr5962
    @romanr5962 Год назад

    nice! Thanks Dave

  • @Daviddd10
    @Daviddd10 Год назад

    Youre such an amazing teacher!

  • @thirumalr333
    @thirumalr333 Год назад

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

  • @yourskoolboy
    @yourskoolboy 11 месяцев назад

    Thank you very much Sir

  • @alexanderkomanov4151
    @alexanderkomanov4151 Год назад

    Thanks a lot!

  • @TravinskiyVladislav
    @TravinskiyVladislav Год назад

    Nice, 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.

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

  • @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 🙏🙏🙏

  • @MohammadrezaEmamyari
    @MohammadrezaEmamyari 11 месяцев назад

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

  • @ankushmalik8257
    @ankushmalik8257 Год назад

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

  • @jamshid5995
    @jamshid5995 Год назад

    You are very awesome teacher !🔥🔥

  • @elvispontes4165
    @elvispontes4165 Год назад

    The best professor as aways!

  • @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."😃

  • @divpolitics9520
    @divpolitics9520 Год назад

    goddamn Dave keeps delivering

  •  3 месяца назад +1

    I love this guy

  • @DasunWijesundara
    @DasunWijesundara Год назад

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

  • @ayushkathariya
    @ayushkathariya Год назад

    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.

  • @World_information5568
    @World_information5568 Год назад

    Thank you very much Sir 😊❤️

  • @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 !

  • @MickeyB164
    @MickeyB164 Год назад

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

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

  • @alif_hasan_shah
    @alif_hasan_shah Год назад

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

  • @vishalraj3762
    @vishalraj3762 Год назад

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

  • @maxralph01
    @maxralph01 Год назад

    No. 1!

  • @nahomhailu961
    @nahomhailu961 Год назад

    Dave 👑 ❤️

  • @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!

  • @semereyohhanes2683
    @semereyohhanes2683 2 месяца назад

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

  • @chidimbamalu3490
    @chidimbamalu3490 Год назад

    Liked before watching.....

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

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

  • @iAmTheWagon
    @iAmTheWagon Год назад

    Hell yeah 👍

  • @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!. 🤩🤗

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

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Год назад +1

      It is not too early. It will be a useful tool for all projects.

  • @02_matinkadri67
    @02_matinkadri67 Год назад

    Waiting for NextJS 13 tutorial🔥

  • @xenusugi
    @xenusugi Год назад

    have a great day too

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

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

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

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

  • @rickfessler
    @rickfessler Год назад

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

  • @gullapallijyothikiran3371
    @gullapallijyothikiran3371 Год назад +2

    hi sir from india

  • @saswatpranat6748
    @saswatpranat6748 Год назад

    Sir make a video about fastest way to learn web developement

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

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

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

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

  • @yesharshyes
    @yesharshyes Год назад

    you god 35:00

  • @BMikel
    @BMikel Год назад

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

  • @RobertVeale
    @RobertVeale 24 дня назад

    git repository different than the one in the video

  • @TheLastPhoen1x
    @TheLastPhoen1x 28 дней назад

    Tutorial on how to GIT GUD.

  • @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 19 дней назад

      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.