Up and Running with Git Transcripts
Chapter: The '6' core git operations
Lecture: A quick roadmap before we dive in

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


Talk Python's Mastodon Michael Kennedy's Mastodon