Performs a git reset "hard" to the current HEAD.
Resets the index and working tree. Any changes to tracked files in the working tree since
<commit> are discarded.
repositoryDir
:
string
-
The git repository.
commit
:
string
-
The commit to which git should perform the reset.
file
:
string
-
The file to reset - null means all files.
Performs a git reset "hard".
Resets the index and working tree. Any changes to tracked files in the working tree since
<commit> are discarded.
repositoryDir
:
string
-
The git repository.
commit
:
string
-
The commit to which git should perform the reset.
file
:
string
-
The file to reset - null means all files.
Performs a git reset "mixed".
Resets the index but not the working tree and reports what has not been updated.
repositoryDir
:
string
-
The git repository.
commit
:
string
-
The commit to which git should perform the reset.
file
:
string
-
The file to reset - null means all files.
Performs a git reset "soft".
Does not touch the index file nor the working tree at all.