Git and GitHub for Beginners - Crash Course

4,052,887
1,459
Published 2020-05-28
Learn about Git and GitHub in this tutorial. These are important tools for all developers to understand. Git and GitHub make it easier to manage different software versions and make it easier for multiple people to work on the same software project.

This course was developed by Gwen Faraday. Check out her YouTube channel:    / @faradayacademy  

🔗 Git Commands: gist.github.com/gwenf/19e5748a5391929e8e938a22c8a4…
🔗 Install git: www.atlassian.com/git/tutorials/install-git
🔗 SSH Keys: help.github.com/en/github/authenticating-to-github…


⭐️ Contents ⭐️
⌨️ (0:00) Introduction
⌨️ (1:10) What is git?
⌨️ (1:30) What is version control?
⌨️ (2:10) Terms to be learn in video
⌨️ (5:20) Git commands
⌨️ (7:05) sign up in GitHub
⌨️ (11:32) using git in local machine
⌨️ (11:54) git install
⌨️ (12:48) getting code editor
⌨️ (13:30) inside VS Code
⌨️ (14:30) cloning through VS Code
⌨️ (17:30) git commit command
⌨️ (18:15) git add command
⌨️ (19:15) committing
⌨️ (20:20) git push command
⌨️ (20:30) SSH Keys
⌨️ (25:25) git push
⌨️ (30:21) Review workflow so far
⌨️ (31:40) Compare between GitHub workflow and local git workflow
⌨️ (32:42) git branching
⌨️ (56:30) Undoing in git
⌨️ (1:01:50) Forking in git
⌨️ (1:07:55) Ending



Thanks to Harsh Raj for creating these time codes and section descriptions.



--

Learn to code for free and get a developer job: www.freecodecamp.org/

Read hundreds of articles on programming: freecodecamp.org/news

All Comments (21)
  • Hey everyone, thanks for watching ❤ If you want to support my work, I wrote a book on learning to code: https://amzn.to/3a911Rk (US) and https://books2read.com/u/4DgO8D (worldwide)
  • @panamafred1
    When you said CD = Change Directory, I went into a time warp. I bought my first PC in 1984. It had a massive 10 meg hard drive! I knew absolutely nothing about computers. Didn't even know anyone who had one. The computer came with a thick three-ring binder with the title, DOS. I read and reread and reread the entire book until it started to make sense. (The first version of Windows didn't come out until 1985.) In 1985, I bought an early copy of Symantec's Q&A, a (non-Windows) word processor, flat file, and report generator, which relied heavily on keystroke combinations to get things done but was hinting at a graphical interface. I ran a non-profit for many years with Q&A and loved it, such an improvement from WordStar. So, now at 72-years-old, to see CD = Change Directory, I say to myself, "Hey, I can do this." Thanks for a good tutorial.
  • @siriusvatsa
    TimeLine 1:10 What is git 1:30 What is version control 2:10 Terms to be learn in video 5:20 Git commands 7:05 sign up in github 11:32 using git in local machine 11:54 git install 12:48 getting code editor 13:30 inside vsCode 14:30 cloning through vsCOde 17:30 git commit command 18:15 git add command 19:15 commiting 20:20 git push command 20:30 SSH Keys 25:25 git push 30:21 Review workflow so far 31:40 Compare between github workflow and local git workflow 32:42 git branching 56:30 Have fun is not allowed 1:01:50 Forking in git 1:07:55 Ending
  • This tutorial is probably the best github tutorial any beginner online could make use of. The lecture was succinct and it passed the desired information to the viewers, not having to make things overly complicated, she explains it so well.
  • @illhaveawtrplz
    What an amazing explanation, thank you so much for being so clear and concise! A tip for new learners like myself: This video is slightly dated. GitHub now refers to the primary branch as "main" and not "master". If you try to run these commands exactly like Gwen in the video, you'll run into errors. Remember: main ✔️ master ❌
  • @kaitoti21
    Thank you, Maybe some suggestions, - add the changes of github defaulting to "main" instead of master and the configs on it. - Setting up SSH keys(20:30) first must be earlier than the cloning through VS Code(14:30), so we can follow along
  • @user-mk2xz9ib5q
    Gwen articulated this topic so well and was able to break it down into simple terms for a newbie like me. She also explained everything very clearly, showcasing her intelligence in simplifying complicated concepts with ease. I am very grateful to have stumbled upon this video.
  • @sawazalz9764
    16:28 if you are having problem with using command "ls -la", make sure that you change your terminal into Bash first. To change your terminal, 1. Head to the upper right corner on terminal and press the drop-down menu. 2. Select "Git Bash" terminal. 3. Start using the command "ls -la" there.
  • I don't usually leave comments for tutorials, but let me say, this one fit like a glove to my newbie needs. Thanks a lot!
  • @EricHillAuthor
    Gwen, your video is great! I love how everything is broken down into bite-size chunks. You have a wonderful gift of teaching. You've helped this beginner get closer to becoming a competent user of Git & GitHub.
  • @mikeantonin7580
    This was a highly comprehensive and helpful Git tutorial. It was definitely worth the full hour because unlike other shorter tutorials, it covered everything extensively (with appropriate examples too) thus helping me to properly understand the basic concepts and operations of Git as well as use cases, Thank you very much!
  • It's the best Git / Github tutorial out there and that too at no cost to the learner. Amazingly explained all important and, I believe, the most commonly used git commands / Github operations in such an easy to understand manner. I feel so confident now in using git/github from earlier being a Zero in this space. I'd spcially acknowledge the slow pace of Gwen's speaking while explaining all these concepts. Wonderful job done, Gwen. Thank a ton!!!!!
  • @anuvapandya8287
    Whole course was broken down into heading and sub-headings, spending time on important ones and you made sure the basics were clear to the students, viewers or learners like me. Thank You Gwen.
  • @jmdavaul
    This was much better than I expected it to be. Very "no fluff," clear, and bite sized. You can find these topics in many places (youtube, udemy, skillshare, etc) but most instructors can't seem to explain these topics plainly. You did exactly that, nice job. You covered the core concepts of branching, merging, PR's, conflict resolutions, and undoing changes in very easy to follow and digestible steps 👍
  • @MS-wv8nk
    Gwen, your tutorial is absolutely excellent! I am so grateful for IT pros like you! You are very clear, thorough, detailed. I've always wanted to better understand Git & Github and I believe you are my answer to learn how to make use of these great tools. It's SO nice to have a non-judgmental pro who makes sense and doesn't teach as if most of us out here already know what the tool does and how we can benefit from it. Hopefully I can teach my friends in time. I've just become your newest subscriber, so many thanks and please keep up the excellent teaching. I'm excited and now engaged...I've just got to make time to learn it and learn it well. Much respect. - MS!
  • @DefnitelyNotFred
    Absolute masterpiece of a Tutorial. I'm an electrical engineer working as a Data Analyst with Energy Data. I'm trying to shore up my programming credentials as a Data Scientist because I'm trying to change jobs and have failed a lot of interviews for not having enough knowledge on Git, so this guide is very welcome :D
  • @adraintokyo7994
    This is an excellent, detailed tutorial for Git and GitHub. It’s long, but easy to follow, not least because there is no distracting music, no annoying jingles or graphics and perhaps most helpful, the narration is measured and carefully modulated ... you quickly feel at home with the delivery, from someone who really knows their subject material.
  • @GTFreeFlyer
    I finally understand Git after this video. I’ve asked so many questions to friends and watched several “quick” YouTube tutorials and was still confused about Git. Your tutorial was excellent and I’m glad I sat through the whole hour of it. It was completely worth my time. Thanks!
  • @TheBearCoder
    You do not understand how much this video has helped me in using git as an upcoming developer. You are the best teacher i have ever seen on youtube! Thank you so much
  • @johnnosek731
    My feedback: this was an incredibly helpful overview of how to use git. Thank you. I've been using it for over a year now but some of the commands I just ran because that's how I'd seen more senior devs do it. I really appreciated you explaining what some of the arguments mean (e.g. HEAD, origin, -u). I know there is a ton more that git can do but from my experience this will give people 90% of what they'll ever use git for.