Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Getting Started With Git (Summary)

In this video course, you learned how to do the following:

  • Check the status of your files with git status
  • Stage updates with git add
  • Create snapshots with git commit
  • Review history with git log

You can repeat this cycle as your project evolves. To continue building on this foundation, explore branching, merging, and connecting your repositories to platforms like GitHub for remote collaboration.

Resources mentioned in this lesson:

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

00:00 Congratulations on making it this far! As a quick recap, in this course you learned to use a variety of Git commands. You learned to use git config to configure Git with your name and your email, used git init to initialize a repository, or a repo for short, you used git add to add files to the staging area, and then used git commit to create a commit out of those staged changes, creating a data point in your project history.

00:27 Then you’ll use git log to see the history of commits of your project. At some point, you ended up using git restore to take some files that were changed and to restore them to the state of the previous commit, and then you used a very specific form of git reset.

00:45 You used git reset HEAD~1 to reset the history to the previous commit. There’s a couple more that you may want to learn in the future as you become a more proficient user, but also don’t forget two other key learnings, which are that commit messages should be short and descriptive, otherwise it’s going to be impossible to navigate the history of your project, and you can use the file .gitignore to ignore files and folders that you do not want to track with Git.

01:13 Now, if you’d like a written version of this course that contains some other different tips, Real Python has a tutorial called How to Use Git: A Beginner’s Guide.

01:24 There’s also a tutorial on how to use GitHub if you want to learn to use the web platform where you can host your Git repositories. And if you want to dive right into the deep end, Real Python also has an Advanced Git Tips for Python Developers tutorial that covers much more advanced material.

01:43 Thank you so much for watching. My name is Rodrigo, and I’ll catch you on the next one.

Become a Member to join the conversation.