Git - git-restore Documentation
https://git-scm.com/docs/git-restoreBy default, if --staged is given, the contents are restored from HEAD , otherwise from the index. Use --source to restore from a different commit. See "Reset, restore and revert" in git [1] for the differences between the three commands. THIS COMMAND IS EXPERIMENTAL. THE BEHAVIOR MAY CHANGE. OPTIONS -s <tree> --source=<tree>