Fireship · @fireship

Git It? How to use Git and Github

Uploaded October 26, 2018 · Length 12:19

Git It? How to use Git and Github

Summary

This video teaches how to use Git and GitHub for version control, including initializing a repository, staging and committing files, and collaborating with others.

  • git tutorial
  • github basics
  • version control system
  • git repository
  • collaboration tools

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    [Music]

  2. 0:06

    when it comes to development most tools

  3. 0:09

    that you come across have a limited

  4. 0:10

    shelf life but despite this constant

  5. 0:12

    churn there's one thing that remains

  6. 0:13

    consistent and that's good it's easy to

  7. 0:15

    take it for granted but when you take a

  8. 0:17

    step back you'll find that git has

  9. 0:18

    completely revolutionized the software

  10. 0:20

    world it's essentially a history book of

  11. 0:22

    your code and services like github make

  12. 0:24

    open source software accessible to the

  13. 0:26

    world in today's video I'll show you the

  14. 0:28

    basics of get along with some advanced

  15. 0:29

    pro tips and I'll even invite you to

  16. 0:31

    collaborate with me on a pull request on

  17. 0:33

    github in exchange for a free sticker I

  18. 0:36

    think that's a pretty good deal so if

  19. 0:37

    you're new here like and subscribe and

  20. 0:39

    I'll give you further instructions

  21. 0:40

    throughout this video so what is get

  22. 0:43

    exactly it's a version control system

  23. 0:45

    but really what that boils down to is a

  24. 0:47

    system for managing your files building

  25. 0:50

    software is a series of small milestones

  26. 0:52

    where each milestone is just writing

  27. 0:54

    code and a bunch of different files your

  28. 0:56

    app will constantly move from a state of

  29. 0:57

    chaos to stability and gate gives you a

  30. 1:00

    way to keep track of all of these

  31. 1:01

    changes and it does so in a way that

  32. 1:03

    allows you to create multiple branches

  33. 1:05

    or paths that you can go down and then

  34. 1:07

    merge them in later facilitating

  35. 1:09

    collaboration between large groups of

  36. 1:10

    developers so today I'm going to show

  37. 1:12

    you how this all works by building a

  38. 1:14

    piece of open source node software that

  39. 1:16

    we can all collaborate on the software

  40. 1:18

    itself is a command-line utility that

  41. 1:20

    will allow you to encrypt your mailing

  42. 1:21

    address and then add it to the github

  43. 1:23

    repo so I can mail you a sticker in my

  44. 1:25

    current working directory I just have an

  45. 1:27

    index J s file and a package.json I'll

  46. 1:30

    go ahead and click on the source control

  47. 1:31

    icon and you'll notice it says no source

  48. 1:33

    control provider is registered the first

  49. 1:36

    thing we'll need to do is initialize get

  50. 1:37

    to start tracking our files and there

  51. 1:39

    are two ways we can do this we can

  52. 1:41

    either do it directly in vs code or we

  53. 1:43

    can do it from the command line you

  54. 1:44

    should definitely try to memorize all

  55. 1:46

    the commands I show you in this video

  56. 1:47

    but it's often faster to run them with

  57. 1:49

    vs codes integrated tooling and I'll

  58. 1:51

    show you both methods throughout this

  59. 1:52

    video so first we'll go ahead and run

  60. 1:55

    get an it from the command line and

  61. 1:56

    you'll see that initializes an empty git

  62. 1:58

    repository in our current working