Git & GitHub Crash Course For Beginners

Sdílet
Vložit
  • čas přidán 4. 02. 2017
  • In this Git tutorial we will talk about what exactly Git is and we will look at and work with all of the basic and most important commands such as add, commit, status, push and more. This tutorial is very beginner friendly.
    DONATIONS:
    We spend huge amounts of time making these videos available for free. Any donation is greatly appreciated
    www.paypal.com/cgi-bin/webscr...
  • Věda a technologie

Komentáře • 2,5K

  • @prodengineer7164
    @prodengineer7164 Před 3 lety +1291

    I just wanted to say thank you for this great video! 💙
    What is git?- 0:34
    Concepts of git - 2:18
    Basic commands - 3:14
    Installing git - 5:43
    touch (command) - 10:15
    git init(command) - 11:33
    username/email configuration - 12:43
    git add (command) - 13:20
    git status(command) - 13:35
    git rm - -cached(command) - 14:00
    git add *.html (command) - 14:22
    git add .(command) - 15:00
    git commit(command) - 15:50
    git commit -m ' ' (command) - 17:43
    .gitignore (documentation) - 18:14
    git branch(command) - 21:50
    git checkout(command) - 23:30
    git merge(command) - 24:46
    GitHub new repository - 26:15
    git remote(command) - 27:46
    git remote add origin(command) - 27:54
    git push -u origin master(command) - 28:07
    git clone(command) - 31:00
    git pull(command) - 31:33

  • @labanmureithi8029
    @labanmureithi8029 Před 4 lety +67

    I was on the verge of giving up on Git. Lol. Thanks man, I'm now confident with using it.

  • @folyrd
    @folyrd Před 3 lety +20

    This video was great! I was struggling with figuring out Git from online articles but I believe this is all a beginner needs. You've shown how basic commands work very intuitively. Thanks.

  • @tfmurphhk
    @tfmurphhk Před 2 lety +24

    Brad, I spent many hours with another CZcams instructor trying to figure out Git and GitHub and while she covered the basics and I got a general understanding, it was this video that really "taught" me. You go through things in a clear, concise, and well paced format that made it all come together very nicely. I very much appreciate it (I have watched and learned from your videos before and have no idea why I did not start off on Git/GitHub with you in the first place.) Thank you ever so much! I have given you a thumbs up and subscribed and look forward to more of your teachings.

  • @MrSidMan
    @MrSidMan Před 4 lety +85

    The spectrum of Brads content is very broad in the programming realm.
    You've come a long way Brad, hats off to you my friend.

  • @TheTraderGuy
    @TheTraderGuy Před 7 lety +382

    I cannot tell you how much you have helped me Brad. I am almost done with my Web Development degree, and I feel you have been the difference.

    • @TraversyMedia
      @TraversyMedia  Před 7 lety +136

      That is awesome. That's why I do this

    • @sbsaqi
      @sbsaqi Před 7 lety +6

      i have the same feeling ... it was very simple n easy to go along with the lecture ... :) thums up

    • @NaturalBeautifulHair
      @NaturalBeautifulHair Před 7 lety +8

      I really hope people are donating...even if its just a few dollars.

    • @SirTenenbaum
      @SirTenenbaum Před 6 lety +4

      Where are you doing your Web Development degree?

    • @AtileonVA
      @AtileonVA Před 6 lety

      thanks man :)

  • @justlearn1973
    @justlearn1973 Před 4 lety +710

    Git! a Severely complicated version of 'Save As'
    - Confucius

  • @bossbaby.anaisha
    @bossbaby.anaisha Před 4 lety +6

    This is a great tutorial for beginner like myself. I started from very beginning. Installed Git, Atom and created account on GitHub. I was able to create local and remote repository, create new files, clone, push etc. Very worth the time to see this video. Great Job! Thanks!

  • @KC-SHOW
    @KC-SHOW Před 5 lety +62

    This turorial was one of the best tutorial I have gone through as a fresher for Git.
    ..Thanks Man for this wonderful session.

  • @hurol0914
    @hurol0914 Před 6 lety +58

    Thanks for taking the time to make this video. I have returned to web development after many, many years away and there's so many new things I need to learn. Your videos have been a tremendous help.

  • @andreamcarr
    @andreamcarr Před 2 lety +3

    I have watched about 8 vids by other people that claim to be for git beginners, and was completely lost. I really like that you showed the terminal along side your code editor and then github. Finally this all made sense to me. TY so much for keeping it simple. I am hooked on your vids now.

  • @marcelo.trajano
    @marcelo.trajano Před 4 lety

    Traversy you are my compass. I can watch hundreds of tutorials but you are the only one i can understand everything just fine. Thanks a lot!

  • @arinzeanakor
    @arinzeanakor Před 7 lety +59

    I simply like your tutorial. Clear, straight to the point.... I've referred some of my friends to this git tutorial. Thanks

  • @okieinexile
    @okieinexile Před 4 lety +181

    I learned more from you in half an hour than I'd learned in several hours on my own. Thanks.

    • @MKermy
      @MKermy Před 4 lety +3

      please explain wtf commit is

    • @semihozturk9665
      @semihozturk9665 Před 4 lety +6

      @@MKermy bro, with commit what you do is to create a new version. For example now i am committing, so a new version is being created. If i do some changes, deleting or adding etc. and commit again, a new version will be created. But i can still look at the older version since its not deleted. I hope its clear?

    • @MKermy
      @MKermy Před 4 lety

      @@semihozturk9665 ohhhhh

    • @viktorkuzmanov3086
      @viktorkuzmanov3086 Před 4 lety +5

      Damn you are a slow learner

    • @Manim8
      @Manim8 Před 3 lety +1

      @@semihozturk9665 so it's the same as autosaving, except it's manual? Is there any advantages for a single user project over just using an external backup drive, and copying to it every time i save the project?

  • @DmanDaks
    @DmanDaks Před 4 lety +2

    This is the best intro to Git that I have come across. Thanks, my dude.

  • @harmoniousT
    @harmoniousT Před rokem +7

    I am forever grateful for your insight and knowledge. This tutorial is arguably one of the easiest ones to follow along and allowed me to feel confident enough to start using it. I can't thank you enough Brad!

  • @Dead-Not-Sleeping
    @Dead-Not-Sleeping Před 5 lety +48

    Thank you sir. I've been ignoring git for way too long and this was exactly what I needed. cheers

  • @arslanramay7992
    @arslanramay7992 Před 5 lety +12

    This is The Best Git & Github guide I have ever found. Keep up the good work man.

  • @tfmurphhk
    @tfmurphhk Před 2 lety +2

    Brad really has a knack for teaching. Every one of his videos that I have watched... have helped me immensely! Thank you sir.

  • @RandomSpark
    @RandomSpark Před 4 lety +1257

    people who are watching during the quarantine [stay in, stay safe, and learn a lot ]

    • @henrike16254
      @henrike16254 Před 4 lety +6

      just what I thought... gotta study somehow with all unis closed:)

    • @ishanchag6467
      @ishanchag6467 Před 4 lety +2

      what else can we do

    • @shubham4516
      @shubham4516 Před 4 lety +3

      superb video explaination. landed at the right place

    • @italorohdrigues
      @italorohdrigues Před 4 lety +4

      Let's go quarentine team

    • @ai.201
      @ai.201 Před 3 lety +1

      This is so good.

  • @zelalemmekonnen8030
    @zelalemmekonnen8030 Před 4 lety +9

    Thank you for this. I love how it was just straight to the point without any fuss. Thank you!

  • @tocobern
    @tocobern Před 5 lety +11

    To be a teacher is to make things simple enough for others to understand easily. You did that perfectly. Keep up the good work Brad

  • @KO-vz5rd
    @KO-vz5rd Před 3 lety +10

    Thanks for this wonderful tutorial! I really liked the way you demonstrated GIT functionalities that are crucial for us to get started, creating and using some files. I followed every single steps, and now feel much more confident with Github!

  • @ariolverab
    @ariolverab Před 3 lety +38

    One of the greatest skills from Brad is that he teach basics from understanding and not memorizing. Thanks Brad!

  • @anniediamond21webdesign26

    this is the best tutorial still in 2019, I watched and bought professional courses in my native language and tried to found simply explanation of git for a year . Finally I learned how to start wirh GIT Many Thanks!!!
    You are the best teacher I ever met. Yo are legend!

  • @amerolla
    @amerolla Před 4 lety +5

    Excellent introduction! The best of several tutorials I've used.

  • @geraldmcn3884
    @geraldmcn3884 Před 3 lety +3

    What a great teacher Brad is, clear instructions with examples what more could you ask for in a lesson.

  • @the360vision
    @the360vision Před 4 lety

    One year ago I failed to understand GIT. Because of your tutorial today I can use it for my personal projects. I love GIT! Thank you!

  • @bkxornam
    @bkxornam Před 4 lety +3

    This was an excellent tutorial. gave me a deeper and improved understanding of everything I learnt today in training

  • @coltermahlum162
    @coltermahlum162 Před 3 lety

    Absolutely love this video, helped me tackle Git for professional use! Easing the pain of asking others to perform Git actions. Thanks a bunch!

  • @tiffanygroves3158
    @tiffanygroves3158 Před 5 měsíci

    Thank you so much for breaking this all down and describing what editor or site needed for each step. This is the most thorough explanation I have come across yet.

  • @SajadJalilian
    @SajadJalilian Před 4 lety +5

    thank you. this was simplest and most clear video i found on youtube about git

  • @da80
    @da80 Před 7 lety +5

    this is the best git tutorial I've ever watched!!!

  • @rohansingla7855
    @rohansingla7855 Před 2 lety +1

    The best video on GIT basics that I have seen till now.. I was so scared when I dealt with GIT for the first time. But now it all looks so easy

  • @sanjaymishra6868
    @sanjaymishra6868 Před 3 lety

    You summarized all the basic concepts in just 32 min. kudos to you man and thanks for making wonderful video.

  • @busyrand
    @busyrand Před 6 lety +4

    Awesome! Thank you for the Beginner Tutorials. You're the best!

  • @leonardocamargo5412
    @leonardocamargo5412 Před 4 lety +5

    I am Portuguese(Brazillian). I've learned so much watching your videos. Your voice and english speak is so easy to hear or I am understand english very well xD

  • @nksenadeera2601
    @nksenadeera2601 Před 4 lety

    best tutorial ever.. you did whole 1week lecture without making me boring of it within 10 minutes.

  • @sarthakjha2192
    @sarthakjha2192 Před 2 lety

    I was going thru some other tutorials, but this was the best, straight to the point, no bs, simply awesome

  • @lauraarchambault7704
    @lauraarchambault7704 Před 4 lety +7

    Thank you! I’ve been reading and watching a lot on git. For some reason, I was having a hard time wrapping my head around the basics but after this video, I feel like the whole picture makes sense. Thank yo, thank you, thank you!

  • @VerzoProductions
    @VerzoProductions Před 5 lety +4

    You're my favourite source of information on CZcams and Udemy because you're straight to the point, give the essential information and do so in a way that is easy to remember. Keep up the great work!

  • @subnet5871
    @subnet5871 Před 9 měsíci

    Clear, consise, hands on guidance to its perfection! I think that many instructors emphasize 1 thing too many, but Traversy seems to balance it all out very well. I have gone through a few courses, and even made some git repos before coming here and had confusion. Now that I have gone through this video I feel much more confident! The next thing I am going to attack is finding a good Git Workflow. Thanks again for your guidance as always!

  • @sotumodo4317
    @sotumodo4317 Před rokem +1

    I can not thank you enough for this very helpful tutorial. I created a github account over a year ago but I had no idea how to use it and so it's been sitting there collecting dust. But now thanks to your video, I've created my first repository and I have some idea of how to use it. Thank you so much!

  • @atticsolutions1476
    @atticsolutions1476 Před 4 lety +4

    Great tutorial as always. On the point for refresh and everything needed covered!

  • @curios_bot
    @curios_bot Před 4 lety +6

    Now you made my life easy bro!! Thanks for this tutorial 👏

  • @praveenpoonja95
    @praveenpoonja95 Před 4 lety +2

    Seriously I took a right decision watching the video to understand git under the hood. I used to copy paste commands on git bash without knowing the purpose of each command until i found this video. Thank you and keep posting more videos👍🏻

  • @anasbhih5114
    @anasbhih5114 Před 4 lety

    This guy seriously covered everything I was looking for. nothing more, nothing less. Thanks!

  • @richardphelps566
    @richardphelps566 Před 4 lety +3

    I've been looking all over for a good git tutorial. This is by far the best. Good Job.

  • @robmedlock2836
    @robmedlock2836 Před 4 lety +4

    I've been trying to get my head around git using visual studio and devops and was finding everything terrifyingly vague, after learning more about the basics and using the command line I feel much more comfortable, I'm under no illusion that I am an expert and am still somewhat cautious but I am not as scared as I was or confused over what is really going on at each step, thanks a lot!!

  • @zeeshanhaider1341
    @zeeshanhaider1341 Před 3 lety +1

    What a tutorial !
    I was working on my local machine and each time I was uploading my project to server using FTP. It was taking too long and boring for me. Then I heard about "Git". I found this tutorial and decided to invest my 35 minutes to learn.
    I can't share my excitement. It took me beyond my expectations.
    God Bless you.
    Love from Pakistan :)

  • @djbioxic4023
    @djbioxic4023 Před 4 lety

    I've been just using the Eclipse Git client this whole time, without knowing what it all meant. Big mistake.
    You are very thorough and the code session really helped me see what all this actually means.
    Thank you!

  • @Pymmusic
    @Pymmusic Před 2 lety +3

    Thank you very much for this tutorial!
    I've followed your beautiful course in Udemy on Vanilla Javascript and I have to say that
    you have the gift to explain all clearly.
    Thank you again!
    Paolo Maria Guardiani

  • @JeffCompton
    @JeffCompton Před 7 lety +6

    Thank you for putting this together.

  • @rickotap3859
    @rickotap3859 Před 4 lety +1

    3:00 to 4:40 is extremly useful for someone who just needs a quick short refresher on the important commands. And then branches, exactly what i needed. thanks alot.

  • @BadalKumar-pi7ud
    @BadalKumar-pi7ud Před 2 lety

    This tutorial is more than 4 years old. But still quite relevant and the way Brad makes "me" understand, no one can !! Thank you Brad Guru Ji. 'pranaam' from India _/\_

  • @0thImpact
    @0thImpact Před 3 lety +10

    For those who may be finding this video after October 2020 just know that there was a patch wherein 'master' branch has been renamed to 'main' going forward! Hopefully this helps somebody.

    • @kavon9748
      @kavon9748 Před 2 lety

      Me! Tanks for that confirmation. This is what I thought and paste in Git. But I have an error message telling me "failed to push some refs to 'github.com....". I did every step though, I must have missed something...

  • @hargovind2776
    @hargovind2776 Před 7 lety +4

    Silmply best! All things explained very well. Thank you.

  • @vaidehidave8996
    @vaidehidave8996 Před 3 lety +1

    Thank you for such a tremendous work. Out of so many videos I used to study, yours is easy to understand, to the point and hands on . It was amazing!

  • @savvy9431
    @savvy9431 Před 3 lety

    I was so confused about git ever since I started learning about it. I tried to learn it from my friends, colleagues and it just confused me more. I almost gave up too. This crash course is a lifesaver for beginners. Tysm for uploading this.

  • @jeffdevries3534
    @jeffdevries3534 Před 7 lety +6

    Thank you! I think I actually understand it now.

  • @brianressler569
    @brianressler569 Před rokem +3

    Even though this video is years old all of these concepts still hold true and if you have some foundational knowledge you can definitely acheive everything shown here. This was great man, short and sweet and it gives you all the essentials. I just got into a job that involves creating content on github and this part of it I had some experience with but mostly with github desktop. I can definitely see the benefit of doing it this way as you get a more fundamental understanding of what is happening.

  • @oni1ecram123
    @oni1ecram123 Před 3 lety

    Almost the third time viewing this and the more I understand without getting bored......You deserve my SUB!!!

  • @revatideshpande4024
    @revatideshpande4024 Před 3 lety

    I learned more from you in 30 minutes than if I'd tried to learn by myself all day

  • @first8208
    @first8208 Před 4 lety +26

    2019 and still awesome

  • @Thaidakarium
    @Thaidakarium Před 7 lety +18

    Easy to understand, and this isn't my native language, you're the best c:

  • @incredibleradhika4164
    @incredibleradhika4164 Před 3 lety +1

    Thanks for making git very simple for us.. Earlier I was struggling as if how I'll do, but now I'm pretty much confident.👍👍

  • @sorubro2193
    @sorubro2193 Před 3 lety

    The only, THE ONLY Git tutorial that showed me that I can right click and git on a folder, when I have money I'll buy your react course no matter what, cheers from chile.

  • @ziklover1
    @ziklover1 Před 3 lety +25

    For people watching this in 2021, master is now main. Don't be alarmed by git push -u origin main

    • @amalldekan1432
      @amalldekan1432 Před 3 lety +3

      thanks, was the 'master' changed to 'main' for 'political correctness' reasons?

    • @ziklover1
      @ziklover1 Před 3 lety +2

      @@amalldekan1432 I believe so, yes

    • @awaismajeed6254
      @awaismajeed6254 Před 3 lety +1

      @@amalldekan1432 yes, in support of black community.

    • @micwag367
      @micwag367 Před 3 lety +2

      Tried this tonight. Main failed for me even though that is what is listed in the steps. Then tried master and it worked.

  • @carsonschmidt3995
    @carsonschmidt3995 Před 5 lety +5

    Very Straightforward.

  • @linhphanthi5871
    @linhphanthi5871 Před 2 lety +1

    I'd been watching so many git video for beginers but only when I find this video did I can have my fist commit to my repo, thank Traversy Media very much

  • @nikolajacques5982
    @nikolajacques5982 Před 8 měsíci

    Aside from 'git log' and 'git revert', this is pretty much all I've used in the past 3 years or so working on learning projects. Great summary!

  • @dylanaltamirano
    @dylanaltamirano Před 7 lety +5

    This is good material! a great place to start with git

  • @Thandidladla
    @Thandidladla Před 5 lety +3

    26:57 - I liked how you said "If you don't have an account, just create one. It's obviously free. Haha
    Amazing crash course man! Perfect for GIT beginners like me. I really should have gotten into this earlier.
    It's gonna be part of my usual workflow now!
    Keep up the good work!
    All the best, Thandi

  • @johanjubin
    @johanjubin Před 3 lety

    With all the tutorial I had gone through, you are the one who made me understand the concept, Thank you so much

  • @mariuszjanowski2190
    @mariuszjanowski2190 Před 2 lety

    That is most useful tutorial I've ever seen. I came back after 2 years beacuse here you can find bunch of useful information about GIT.

  • @rayc3103
    @rayc3103 Před 6 lety +685

    Mark Wahlberg sure knows a lot about Git

    • @TraversyMedia
      @TraversyMedia  Před 6 lety +106

      lol, I get that a lot. Must be a Mass thing

    • @slickd286
      @slickd286 Před 5 lety +35

      hahaha I can't unhear it now

    • @hcgaron
      @hcgaron Před 5 lety +2

      lol same.

    • @Kill4Dill
      @Kill4Dill Před 5 lety +4

      I can't not hear it now >.

    • @Skillthrive
      @Skillthrive Před 5 lety +26

      "Say hi to ya mother for me, OK?"

  • @greenwik
    @greenwik Před 4 lety +9

    "Oh man, this is slow!" :D Nice tutorial, thanks.

  • @DiegoJGorzynski
    @DiegoJGorzynski Před 3 lety

    Man I had just watched a 1h video on this, and I completely hated how overly complicated things are in git and github, now just by watching you do it, I'm up and running. Thanks a lot!

  • @eastenwest4812
    @eastenwest4812 Před 3 lety

    This video is very user-friendly. It answered all of my noob questions and was easy to follow along with in the process of actually typing, creating and connecting with Git, GitHub and VS.

  • @KingJellyfishII
    @KingJellyfishII Před 4 lety +436

    "I'm going to go ahead and GIT started"

    • @21335186z
      @21335186z Před 4 lety +9

      You git XD

    • @deeneyugn4824
      @deeneyugn4824 Před 4 lety +10

      Well, git on it.

    • @KingJellyfishII
      @KingJellyfishII Před 4 lety +2

      @@deeneyugn4824 I'll just git home first and git my computer out of my bag and git on with it

    • @bloodface24
      @bloodface24 Před 4 lety +8

      HA! I Git it.

    • @eponai
      @eponai Před 4 lety +2

      pitter patter, let's git at 'er!

  • @alexci3563
    @alexci3563 Před 6 lety +5

    these are the very basic thing of Git commands,which I am now very familiar with, anyway great video for beginners

  • @exceptionalbuildingservices

    Thank you! Great explanation. I'm a beginner at GitHub and Git and this video makes my life easier.

  • @saviouremmanuel3608
    @saviouremmanuel3608 Před 2 lety

    This is so much a life saver. I have scoured through the web searching for help, I almost gave up on it since all I want to do is incorporate KiCad with Git. I reluctantly clicked on this video and boom! I can smile so heavily. Thanks Brad! God bless you from Nigeria! :)

  • @castiyeaux
    @castiyeaux Před 5 lety +3

    This was so helpful, thank you!!

  • @2013bradleyp
    @2013bradleyp Před 4 lety +218

    *error sound*
    *error sound*
    Whispers “oh Jesus”
    That’s real life

  • @idoreyinukpe759
    @idoreyinukpe759 Před rokem

    Thank you, Brad. Very clear and precise video tutorial. You made me understand Git in less than an hour.

  • @zafarhussain8273
    @zafarhussain8273 Před 3 lety

    This is the reason Brad is my favorite ideal developer , instructor . He dont waste time on nonsense only usefull thats admirable.

  • @aravindkumarreddy4395
    @aravindkumarreddy4395 Před 6 lety +4

    amazing tutorial

  • @thyagtubes
    @thyagtubes Před 5 lety +49

    8:56 for demo (skip intro and installation)

  • @hemendrasahu7943
    @hemendrasahu7943 Před 4 lety +1

    I have finally learned the basics of the git with this video. Thanks, Brad, you are an amazing teacher

  • @EdYouTs
    @EdYouTs Před 3 lety +1

    This video is very helpful. I just learned the basic fundamentals of git in an hour compare to my 3 hour college lecture which I didn't understand until at the end of it. Thank you very much, this video may be 3 years old but its still very helpful! I wish you well and safe and to everybody here.

  • @celesteren5110
    @celesteren5110 Před 7 lety +3

    this is very helpful, I almost can start to use git now.

  • @samantamrakar3809
    @samantamrakar3809 Před 3 lety +14

    "Git is a Virgin Control System"
    I feel personally attacked.

  • @cynthiamanor6565
    @cynthiamanor6565 Před 3 lety

    EXCELLENT tutorial! Very straightforward and clear. Thanks again for another awesome tutorial.

  • @nltt3191
    @nltt3191 Před 3 lety

    I had go through 10+ tutorials, and this is the most clear and esay titorial of github for beginners !

  • @Spiderman-gg8dg
    @Spiderman-gg8dg Před 5 lety +8

    My employers be like how tf did you learn git in a short time, it's all thanks to you Brad Traversy!

  • @tc40390
    @tc40390 Před 5 lety +8

    I noticed that when you pushed to GitHub and cloned the repo, git didn't use the .gitignore file because the log.txt and the directory ( forgot if it was dir1 or dir2) are available from github. Why is that?

  • @hasnainmalick8888
    @hasnainmalick8888 Před 2 lety

    Traversy you are a great man. I have learnt many things from your channel I have no words to explain how can I thank you.

  • @arindam1249
    @arindam1249 Před 4 lety +154

    Who else is learning during Quarantine?

    • @titusmkandawire5661
      @titusmkandawire5661 Před 4 lety +1

      I am, learning shouldn't stop.

    • @flik221
      @flik221 Před 4 lety +3

      no quarantine, but on lockdown. hope you feel better soon!

    • @DanteHellDrive
      @DanteHellDrive Před 4 lety +2

      no iam not learning but just trying not to distract myself to suicidal thoughts, fair enough, iam bestowed and enlightened

    • @kristiyanivanov7414
      @kristiyanivanov7414 Před 4 lety

      I'm suicidal too

    • @vipulbhardwaj1312
      @vipulbhardwaj1312 Před 4 lety +1

      @@DanteHellDrive Heyy yes you are.. don't let negative thoughts sneak in! God bless.. you can talk

  • @Tyrfing42
    @Tyrfing42 Před 4 lety +4

    When I go through the Git Setup it asks to select an editor, and says the default VIM editor is not recommended. Which one should I choose?

    • @Mal501
      @Mal501 Před 3 lety +2

      Whatever is your editor of choice. Notepad++ is great, Visual Studio Code also. And lots more.
      And this coming from an old unix hand who LOVED vi (original VIM).