Fireship · @fireship
Git It? How to use Git and Github
Uploaded October 26, 2018 · Length 12:19
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.
- 0:00
[Music]
- 0:06
when it comes to development most tools
- 0:09
that you come across have a limited
- 0:10
shelf life but despite this constant
- 0:12
churn there's one thing that remains
- 0:13
consistent and that's good it's easy to
- 0:15
take it for granted but when you take a
- 0:17
step back you'll find that git has
- 0:18
completely revolutionized the software
- 0:20
world it's essentially a history book of
- 0:22
your code and services like github make
- 0:24
open source software accessible to the
- 0:26
world in today's video I'll show you the
- 0:28
basics of get along with some advanced
- 0:29
pro tips and I'll even invite you to
- 0:31
collaborate with me on a pull request on
- 0:33
github in exchange for a free sticker I
- 0:36
think that's a pretty good deal so if
- 0:37
you're new here like and subscribe and
- 0:39
I'll give you further instructions
- 0:40
throughout this video so what is get
- 0:43
exactly it's a version control system
- 0:45
but really what that boils down to is a
- 0:47
system for managing your files building
- 0:50
software is a series of small milestones
- 0:52
where each milestone is just writing
- 0:54
code and a bunch of different files your
- 0:56
app will constantly move from a state of
- 0:57
chaos to stability and gate gives you a
- 1:00
way to keep track of all of these
- 1:01
changes and it does so in a way that
- 1:03
allows you to create multiple branches
- 1:05
or paths that you can go down and then
- 1:07
merge them in later facilitating
- 1:09
collaboration between large groups of
- 1:10
developers so today I'm going to show
- 1:12
you how this all works by building a
- 1:14
piece of open source node software that
- 1:16
we can all collaborate on the software
- 1:18
itself is a command-line utility that
- 1:20
will allow you to encrypt your mailing
- 1:21
address and then add it to the github
- 1:23
repo so I can mail you a sticker in my
- 1:25
current working directory I just have an
- 1:27
index J s file and a package.json I'll
- 1:30
go ahead and click on the source control
- 1:31
icon and you'll notice it says no source
- 1:33
control provider is registered the first
- 1:36
thing we'll need to do is initialize get
- 1:37
to start tracking our files and there
- 1:39
are two ways we can do this we can
- 1:41
either do it directly in vs code or we
- 1:43
can do it from the command line you
- 1:44
should definitely try to memorize all
- 1:46
the commands I show you in this video
- 1:47
but it's often faster to run them with
- 1:49
vs codes integrated tooling and I'll
- 1:51
show you both methods throughout this
- 1:52
video so first we'll go ahead and run
- 1:55
get an it from the command line and
- 1:56
you'll see that initializes an empty git
- 1:58
repository in our current working


