Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m
  • Overview
  • Transcript

1.2 Git Basics: Reset

In this lesson, I’ll explain Git reset. You’ll see how to use each kind of reset and how these varieties interact with the three Git trees.

  • soft: only changes HEAD, but doesn’t change staged files in index or working files
  • mixed: moves HEAD and updates the index with the contents of the revision to which HEAD now points
  • hard: moves HEAD and updates the index and working directory—this is the only version of reset that can cause data loss

I’ll also show you how to use git reset on individual files.

Related Links