Up and Running with Git Transcripts
Chapter: The '6' core git operations
Lecture: A quick roadmap before we dive in
0:03 I'm sure you're itching to start playing with git writing some code and put it into
0:07 version control and doing all the things to get better with git before we dive into
0:13 that. I want to take just a moment and help you get a quick overview
0:19 of the main features that we're going to talk about.
0:22 So in this brief chapter we're going to go over the six.
0:25 git commands. Remember there's a couple of merge,
0:28 maybe there's a few more but the core six git ideas,
0:31 let's say. And we're going to talk just conceptually about them.
0:35 And then throughout the rest of the course we're going to dive in and do a
0:38 bunch of demos and write some code and work with it in git So let's talk
0:43 about the six important git commands again,
0:46 six in quotes. We saw that in order to get a copy of the repository
0:51 to get started. We first have to have a copy of it on our machine
0:54 We do that via clone.
0:57 Next. You might want to know which files are either modified or added or untracked
1:05 and remember we're going to do a lot of this in the UI tools but we
1:08 do want to just think about what what is the foundational git idea.
1:11 And in the Git world that it's called status,
1:15 if we want to take some changes and say they're ready to be committed or ready
1:21 to be saved into the repository locally.
1:24 That's through add and commit. If we want to take potentially multiple changes,
1:29 we've saved and committed to our local repository just on our computer and we want to
1:34 sync that back to some hosted centralized server like back on git hub.
1:38 That's push or pull. If we want to know what's happened recently on our branch
1:44 we can use log and if we want to create a branch,
1:48 switch over to another existing branch or take one branches,
1:52 changes and another and put them together.
1:55 That's checkout branch and merge. So these are the six core ideas from git now
2:02 as listed here on the screen.
2:04 These are actually the git commands that you would type.
2:06 For example, if you wanted to start tracking new file.py you would type
2:11 git add a new file.py again we're doing this through the ui tools for
2:16 the most part. But as we put them here,
2:18 these are actually the commands in git on the cli that you would use.