Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The reset command does a lot of diferent things. The most basic form is as follows. It will replace the file in your working directory with the lasted one in your last committed version in the repository HEAD.

Code Block
git reset FILE1

An optional second parameter is the commit from which to pull the file. And since Since branches are just named commits, you can use a branch name as well

...