Confirmed users
1,643
edits
| Line 311: | Line 311: | ||
| <div style="background-color: rgba(250, 255, 240, 1); border-style:dashed; border-width:1px;border-color:grey"> | <div style="background-color: rgba(250, 255, 240, 1); border-style:dashed; border-width:1px;border-color:grey"> | ||
| <center>'''Note'''</center> | <center>'''Note'''</center> | ||
| '''<object>''' indicates the object name for any type of object. | |||
| < | '''<blob>''' indicates a blob object name. | ||
| '''<tree>''' indicates a tree object name. | |||
| '''<commit>''' indicates a commit object name. | |||
| '''<tree-ish>''' indicates a tree, commit or tag object name. A command that takes a <tree-ish> argument ultimately wants to operate on a <tree> object but automatically dereferences <commit> and <tag> objects that point at a <tree>. | |||
| '''<commit-ish>''' indicates a commit or tag object name. A command that takes a <commit-ish> argument ultimately wants to operate on a <commit> object but automatically dereferences <tag> objects that point at a <commit>. | |||
| </div> | </div> | ||
| There are two forms: reset HEAD to a <commit> and reset paths from a <tree-ish>. In the first case, you have tree options(--merge and --keep are ignore here) | |||
|    git reset [--mixed | --soft | --hard] [<commit>] |    git reset [--mixed | --soft | --hard] [<commit>] | ||