Confirmed users
1,643
edits
| Line 308: | Line 308: | ||
usage: git reset [--mixed | --soft | --hard] [<commit>] | usage: git reset [--mixed | --soft | --hard] [<commit>] | ||
or: git reset <tree-ish> [--] <paths>... | or: git reset <tree-ish> [--] <paths>... | ||
<div style="background-color: rgba(250, 255, 240, 1); border-style:dashed; border-width:1px;border-color:grey"> | |||
<center>'''Note'''</center> | |||
"Tree-ish" is a term that refers to any identifier that ultimately leads to a tree. | |||
</div> | |||
It says a user may reset '''a commit''' or '''paths'''. Reset a commit is literally equal to reassign the referee(commit object) of the current branch to a new one. In this case, you have tree options(--merge and --keep are ignore here) | It says a user may reset '''a commit''' or '''paths'''. Reset a commit is literally equal to reassign the referee(commit object) of the current branch to a new one. In this case, you have tree options(--merge and --keep are ignore here) | ||